• 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: Error -66626
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error -66626


  • Subject: Re: Error -66626
  • From: Doug Wyatt <email@hidden>
  • Date: Fri, 22 May 2009 14:28:03 -0700

1718449215 = 'fmt?'

So there's something wrong with the format being set...

Doug

On May 22, 2009, at 14:20 , dct wrote:

I hadn't set an "err = " at the AudioQueueSetOfflineRenderFormat call.

Having done so, I now get an error equal to: 1718449215.

Don

On May 22, 2009, at 1:51 PM, Doug Wyatt wrote:

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
  • Follow-Ups:
    • Re: Error -66626
      • From: dct <email@hidden>
References: 
 >Re: Error -66626 (From: dct <email@hidden>)
 >Re: Error -66626 (From: Doug Wyatt <email@hidden>)
 >Re: Error -66626 (From: dct <email@hidden>)

  • Prev by Date: Re: Error -66626
  • Next by Date: Re: Differences between iPhone and Desktop Audio
  • Previous by thread: Re: Error -66626
  • Next by thread: Re: Error -66626
  • Index(es):
    • Date
    • Thread