• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Typo Bug in TN2091?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: AUCarbonViewBase without controls?
  • Next by Date: Re: Two AUHALs, one ring buffer, and one AU filter. But no sound.
  • Previous by thread: Re: AUCarbonViewBase without controls?
  • Next by thread: Re: Cannot Get AudioFile 'File Type' Info.
  • Index(es):
    • Date
    • Thread