Re: Error -66626
Re: Error -66626
- Subject: Re: Error -66626
- From: dct <email@hidden>
- Date: Fri, 22 May 2009 11:47:08 -0700
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