Re: ExtAudioFileWriteAsync- skip on write?
Re: ExtAudioFileWriteAsync- skip on write?
- Subject: Re: ExtAudioFileWriteAsync- skip on write?
- From: Doug Wyatt <email@hidden>
- Date: Thu, 01 Jul 2010 17:12:41 -0700
My suspicion is this issue doesn't happen in 4.0. True? If so, then sorry, we can't fix 3.1.3. If it happens in 4.0 then please do file a bug report.
# sent from my iPhone
On Jul 1, 2010, at 15:26, Jonathan <email@hidden> wrote:
> 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
_______________________________________________
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