Typo Bug in TN2091?
Typo Bug in TN2091?
- Subject: Typo Bug in TN2091?
- From: Chilton Webb <email@hidden>
- Date: Thu, 1 Jul 2004 16:51:44 -0500
Hi,
In Technote 2091, it has this section on setting up the desired input
format...
http://developer.apple.com/technotes/tn2002/tn2091.html#TAN68
Specifically, it has...
AudioStreamBasicDescription DeviceFormat;
AudioStreamBasicDescription DesiredFormat;
UInt32 size =0;
//Get the input device format
AudioUnitGetProperty (InputUnit,
kAudioUnitProperty_StreamFormat,
kAudioUnitScope_Input,
1,
&DeviceFormat,
&size);
Shouldn't that line where size is initialized to 0 read instead,
UInt32 size = sizeof(AudioStreamBasicDescription);
...?
Thanks,
-Chilton
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.