Re: Error -66626
Re: Error -66626
- Subject: Re: Error -66626
- From: Doug Wyatt <email@hidden>
- Date: Fri, 22 May 2009 13:51:34 -0700
I hope to document that error in a future release.
But for now, it only comes from two places:
- trying to change kAudioQueueProperty_CurrentDevice when the queue is
in offline mode
- calling AudioQueueOfflineRender when the queue is not in offline mode
"In offline mode" means that AudioQueueSetOfflineRenderFormat has been
called with a non-NULL stream format and succeeded.
Did you get an error result from AudioQueueSetOfflineRenderFormat?
Doug
On May 22, 2009, at 11:47 , dct wrote:
Doug, thank for the reply.
I don't think that's it; I do call AudioQueueSetOfflineRenderFormat.
My sequence of Core Audio function calls goes as follows:
- AudioFileStreamOpen(self, propertyCallback, packetCallback, hint,
&parserID);
- err = AudioFileStreamParseBytes(parserID, inBufSize, inBuffer,
kAudioFileStreamParseFlag_Discontinuity );
(in propertyCallback)
- err = AudioFileStreamGetProperty( inAudioFileStream,
kAudioFileStreamProperty_DataFormat, &asbdSize, &asbd);
- err = AudioQueueNewOutput(&asbd, audioQueueCallback, inBuffer,
NULL, NULL, 0, &queue);
- AudioQueueAllocateBuffer( queue, nn, &queueBuffer );
-AudioQueueSetOfflineRenderFormat( queue, &asbd, &chLayout );
(in propertyCallback)
- err = AudioQueueOfflineRender( dcdrData->queue, &ts, outBuffer,
asbd.mFramesPerPacket );
( ts is a time stamp with ts.mSampleTime=0 & ts.mHostTime
= sys clock time)
Here I get err = -66626 and outBuffer seems to contain only 0s.
On May 21, 2009, at 6:24 PM, Doug Wyatt wrote:
Maybe you didn't call AudioQueueSetOfflineRenderFormat first?
_______________________________________________
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