• 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
RE: AudioFileReadPackets() how should ' inUseCache' argument be set oniPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

 


Replace Ads with your Stuff! Learn how @  www.prowebsurfer.com


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.

 

—Jens

 _______________________________________________
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

References: 
 >AudioFileReadPackets() how should ' inUseCache' argument be set on iPhone (From: "Andrew E. Davidson" <email@hidden>)
 >RE: AudioFileReadPackets() how should ' inUseCache' argument be set oniPhone (From: "Andrew E. Davidson" <email@hidden>)
 >Re: AudioFileReadPackets() how should ' inUseCache' argument be set oniPhone (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: AudioFileReadPackets() how should ' inUseCache' argument be set oniPhone
  • Next by Date: SubGraphs
  • Previous by thread: Re: AudioFileReadPackets() how should ' inUseCache' argument be set oniPhone
  • Next by thread: Re: AudioFileReadPackets() how should ' inUseCache' argument be set on iPhone
  • Index(es):
    • Date
    • Thread