Commits

Anonymous committed 6eb9784

Changes to get compiling on 10.6 without warnings

Comments (0)

Files changed (5)

lib/DDAudioComponent.h

 
 - (ComponentDescription) ComponentDescription;
 
+- (AudioComponentDescription) AudioComponentDescription;
+
 - (NSString *) manufacturer;
 
 - (NSString *) name;

lib/DDAudioComponent.m

     return mDescription;
 }
 
+- (AudioComponentDescription) AudioComponentDescription;
+{
+    AudioComponentDescription * description = (AudioComponentDescription *)&mDescription;
+    return *description;
+}
+
 - (NSString *) manufacturer;
 {
     return mManufacturer;

lib/DDAudioUnitGraph.h

                          manufacturer: (OSType) manufacturer;
 
 - (DDAudioUnitNode *) addNodeWithDescription:
-    (ComponentDescription *) description;
+    (AudioComponentDescription *) description;
 
 - (DDAudioUnitNode *) addNodeWithComponent: (DDAudioComponent *) component;
 

lib/DDAudioUnitGraph.m

                               subType: (OSType) subType
                          manufacturer: (OSType) manufacturer;
 {
-    ComponentDescription description;
+    AudioComponentDescription description;
     description.componentType = type;
     description.componentSubType = subType;
     description.componentManufacturer = manufacturer;
 }
 
 - (DDAudioUnitNode *) addNodeWithDescription:
-    (ComponentDescription *) description;
+    (AudioComponentDescription *) description;
 {
     AUNode node;
-    THROW_IF(AUGraphNewNode(mGraph, description, 0, NULL, &node));
+    THROW_IF(AUGraphAddNode(mGraph, description, &node));
     return [[[DDAudioUnitNode alloc] initWithAUNode: node inGraph: self] autorelease];
 }
 
 - (DDAudioUnitNode *) addNodeWithComponent: (DDAudioComponent *) component;
 {
-    ComponentDescription description = [component ComponentDescription];
+    AudioComponentDescription description = [component AudioComponentDescription];
     return [self addNodeWithDescription: &description];
 }
 

lib/DDAudioUnitNode.m

 - (DDAudioUnit *) audioUnit;
 {
     AudioUnit audioUnit;
-    THROW_IF(AUGraphGetNodeInfo([mGraph AUGraph],
-                                [self AUNode],
-                                NULL, NULL, NULL, &audioUnit));
+    THROW_IF(AUGraphNodeInfo([mGraph AUGraph],
+                             [self AUNode],
+                             NULL, &audioUnit));
     return [[[DDAudioUnit alloc] initWithAudioUnit: audioUnit] autorelease];
 }