• 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: AudioQueueOfflineRender: how do I know when I'm done?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AudioQueueOfflineRender: how do I know when I'm done?


  • Subject: Re: AudioQueueOfflineRender: how do I know when I'm done?
  • From: William Stewart <email@hidden>
  • Date: Fri, 23 Jan 2009 12:50:39 -0800

mDataByteSize will NOT always be the full size of the buffer - so please don't make that assumption.

A Tech Note is being prepared (yes, its taking longer than I thought it would have as well)

Yes, this interface will continue to work on iPhone

On Jan 22, 2009, at 10:32 PM, Marc Horowitz wrote:

I'm building an iphone app, and like several others here, I need to use AudioQueueOfflineRender to convert an mp3 stream to PCM samples to do some additional processing. For now, I'm just trying to run the code on my laptop, rather than dealing with the simulator.

I've read the archives for this list, and it seems that AudioQueueOfflineRender is still not quite ready for prime time, but it seems to be the only tool I've got, so I have a few questions.

1. Has anybody actually made this work? I see some messages which seem to indicate that people have, but they are short on specifics, and I am unable to replicate anything working.

2. How do I know when I'm done reading frames from AudioQueueOfflineRender? I don't see anywhere in the interface which tells me how many valid frames are in the output buffer. mAudioByteDataSize is always the full size of the buffer, but this is definitely not right. If I have more frames pending than the last argument to AudioQueueOfflineRender, then I seem to get that many frames. But, I might have less or none, and I can't tell.

I've tried a few different approaches, but without much success: if I call AudioQueueStop after the stream ends, then AudioQueueOfflineRender blocks when it runs out of data. On a 10.5.6 machine, it doesn't block, and I can look for the isRunning property to see when it's done, but that only works to the granularity of the number of frames I pass to AudioQueueOfflineRender. If I don't call AudioQueueStop, both machines just keep reading zeros forever.

3. Can we plan on this interface working in a future version of the iPhone OS? Can you say which one, or when it will ship?

Thanks!

                Marc

_______________________________________________
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

_______________________________________________ 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: AudioQueueOfflineRender: how do I know when I'm done?
      • From: Marc Horowitz <email@hidden>
References: 
 >AudioQueueOfflineRender: how do I know when I'm done? (From: Marc Horowitz <email@hidden>)

  • Prev by Date: Re: Few sample rate conversion questions
  • Next by Date: Re: Is AUVarispeed reentrant
  • Previous by thread: AudioQueueOfflineRender: how do I know when I'm done?
  • Next by thread: Re: AudioQueueOfflineRender: how do I know when I'm done?
  • Index(es):
    • Date
    • Thread