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: "Andrew E. Davidson" <email@hidden>
- Date: Sun, 22 Feb 2009 18:07:11 -0800
Many thanks. my bad
Andy
From: Jens Alfke
[mailto:email@hidden]
Sent: Sunday, February 22, 2009
6:05 PM
To: Andrew E.Davidson
Cc: 'CoreAudio API'
Subject: Re:
AudioFileReadPackets() how should ' inUseCache' argument be set oniPhone
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.
|
_______________________________________________
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