Re: Playing "silence" to an AudioQueue (with VBR format)
Re: Playing "silence" to an AudioQueue (with VBR format)
- Subject: Re: Playing "silence" to an AudioQueue (with VBR format)
- From: Neil Clayton <email@hidden>
- Date: Thu, 24 Jan 2008 18:22:51 +1300
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
I understand that - but I don't see how else I am to pass the buffer
back to the queue. If I don't attempt to enqueue it again, I am
never called back (after all buffers are "consumed").
Are you saying that it's perfectly valid within an AudioQueue callback
to do no enqueing at all?
So on this topic, can I please check a few assumptions I have?
1) When a callback is called with an AudioQueueBufferRef - that buffer
reference is now locked / consumed. It cannot be used by the queue
again until you enque it (give it back to the queue).
2) Within every callback, you must re-enque the supplied buffer back
to the queue.
--
Regards,
Neil Clayton, http://shinywhitebox.com
On 24/01/2008, at 4:00 PM, William Stewart wrote:
But there's no requirement that you enqueue more data from a
callback - all that the cb is telling you is that the buffer it is
supplying has been consumed by the queue.
kAudioQueueErr_BufferEmpty is the error you are getting - you are
trying to enqueue a buffer that has nothing in it.
Bill
On Jan 22, 2008, at 8:15 PM, Neil Clayton wrote:
_______________________________________________
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