Re: ExtAudioFileWriteAsync- skip on write?
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