• 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: ExtAudioFileWriteAsync- skip on write?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ExtAudioFileWriteAsync- skip on write?


  • Subject: Re: ExtAudioFileWriteAsync- skip on write?
  • From: Jonathan <email@hidden>
  • Date: Thu, 1 Jul 2010 15:26:41 -0700

Yep, here's the callback:

OSStatus DiskWriter_callback ( void* inRefCon,
AudioUnitRenderActionFlags* ioActionFlags, const AudioTimeStamp*
inTimeStamp, UInt32 inBusNumber, UInt32 inNumberFrames,
AudioBufferList* ioData)
{
	EngineState* state = (EngineState*)inRefCon;

	if ( *ioActionFlags & kAudioUnitRenderAction_PostRender )
	{
		static int TEMP_kAudioUnitRenderAction_PostRenderError	= (1 << 8);
		if (0 == inBusNumber && !(*ioActionFlags &
TEMP_kAudioUnitRenderAction_PostRenderError))
			ExtAudioFileWriteAsync(state->output_file, inNumberFrames, ioData);
	}

	return noErr;
}


On Thu, Jul 1, 2010 at 3:18 PM, Art Gillespie <email@hidden> wrote:
>>
>> I don't appear to be receiving any memory warnings or anything.  Since
>> I'm seeing a skip, that would imply that the playback callback isn't
>> finish in time, right?  Or can the render callback that's doing the
>> ExtAudioFileWriteAsync hold things up (at least in theory)?
>
> Right, it sounds like the call to ExtAudioFileWriteAsync is causing
> the render callback to miss its deadline.
>
> Is the call to ExtAudioFileWriteAsync the only thing going on in your
> render callback?
>
 _______________________________________________
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: ExtAudioFileWriteAsync- skip on write?
      • From: Doug Wyatt <email@hidden>
    • Re: ExtAudioFileWriteAsync- skip on write?
      • From: William Stewart <email@hidden>
References: 
 >ExtAudioFileWriteAsync- skip on write? (From: Jonathan <email@hidden>)
 >Re: ExtAudioFileWriteAsync- skip on write? (From: Art Gillespie <email@hidden>)
 >Re: ExtAudioFileWriteAsync- skip on write? (From: Jonathan <email@hidden>)
 >Re: ExtAudioFileWriteAsync- skip on write? (From: Art Gillespie <email@hidden>)
 >Re: ExtAudioFileWriteAsync- skip on write? (From: Jonathan <email@hidden>)
 >Re: ExtAudioFileWriteAsync- skip on write? (From: Art Gillespie <email@hidden>)

  • Prev by Date: Re: ExtAudioFileWriteAsync- skip on write?
  • Next by Date: Re: AudioSession Route Strings
  • Previous by thread: Re: ExtAudioFileWriteAsync- skip on write?
  • Next by thread: Re: ExtAudioFileWriteAsync- skip on write?
  • Index(es):
    • Date
    • Thread