What is the difference between CAStreamBasicDescription and AudioStreamBasicDescription?

What is the difference between CAStreamBasicDescription and AudioStreamBasicDescription ? Thanks.

+4
source share
2 answers

CAStreamBasicDescription is just a wrapper class around AudioStreamBasicDescription. Just look at the .h file, which is usually located at: / Developer / Advanced / CoreAudio / PublicUtility /

I usually do not use CAStreamBasicDescription, but I use AudioStreamBasicDescription directly. If you're looking for a little help filling out the AudioStreamBasicDescription structure, just use the FillOutASBDForLPCM function.

+8
source

Contrary to the first answer, I would recommend that everyone use CAStreamBasicDescription if you are not completely familiar with CoreAudio, stream formats, and how they apply to audio units and graphics on each platform. So many problems can be avoided by using the shell and many validation and debugging features.

Core Audio utilities should also be used, whenever possible, to reduce the number of lines of code you need to write yourself when working with specific Core Audio objects. If nothing else, you should not use this beautiful code base as a training tool for some of the internal components of Core Audio.

http://developer.apple.com/library/ios/samplecode/CoreAudioUtilityClasses/Introduction/Intro.html

+3
source

All Articles