• 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
AudioFileStream Services
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

AudioFileStream Services


  • Subject: AudioFileStream Services
  • From: Marc Aurel Kiefer <email@hidden>
  • Date: Fri, 7 Nov 2008 11:54:24 +0100

Hi,

I'm developing an application for the iPhone which uses AudioFileStream Services to play media files via network.
I implemented a simple double buffering, the AudioQueue gets 2 buffers enqueued and my main thread which calls
AudioFileStreamParseBytes() is blocked until I get a AudioQueueOutputCallback to fill the next buffer and enqueue it.


This works fine for uncompressed audio, but if I use MP3 for example, my AudioFileStream_PacketsProc is sometimes called more than once for every chunk I hand to AudioFileStreamParseBytes() , which is not surprising, but messes up my approach.

So my question is, how do I know if all parsed data is returned to me via PacketsProc for a particular call of ParseBytes() ?

Or more generally, how to control the rate at which one should call AudioFileStreamParseBytes?

Is there any example which uses AudioFileStream Services?
_______________________________________________
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


  • Follow-Ups:
    • Re: AudioFileStream Services
      • From: "Hamish Allan" <email@hidden>
  • Prev by Date: simple microphone input with MTCoreAudio
  • Next by Date: Re: AudioFileStream Services
  • Previous by thread: simple microphone input with MTCoreAudio
  • Next by thread: Re: AudioFileStream Services
  • Index(es):
    • Date
    • Thread