Re: AudioFileReadPackets() how should ' inUseCache' argument be set oniPhone
Re: AudioFileReadPackets() how should ' inUseCache' argument be set oniPhone
- Subject: Re: AudioFileReadPackets() how should ' inUseCache' argument be set oniPhone
- From: Jens Alfke <email@hidden>
- Date: Sun, 22 Feb 2009 18:04:38 -0800
On Feb 22, 2009, at 5:41 PM, Andrew E. Davidson wrote: As a test to see if there is a noticeable difference between using use AudioFileReadPackets() and AudioFileReadPacketData() . It looks like the argument lists are the same, I just changed the name of function in my test code. Any way, my iPhone does not emit any audible sound when I use AudioFileReadPacketData() ! it works fine with AudioFileReadPackets()
Did you read the documentation? The argument types may be the same but the meanings aren't: AudioFileReadPacketData's third parameter (ioNumBytes) needs to be initialized before the call, whereas in AudioFileReadPackets, the parameter is called outNumBytes and is only output.
The documentation describes the differences: This function is more efficient than AudioFileReadPackets when reading compressed file formats that do not have packet tables, such as MP3 or ADTS. This function is a good choice for reading either CBR (constant bit-rate) or VBR data if you do not need to read a fixed duration of audio. If you do need to read a fixed duration of audio, whether CBR or VBR, useAudioFileReadPackets instead.
—Jens |
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden