• 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: 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

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>)
 >Re: ExtAudioFileWriteAsync- skip on write? (From: Jonathan <email@hidden>)

  • Prev by Date: Re: ExtAudioFileWriteAsync- skip on write?
  • Next by Date: Re: Playing in reverse
  • Previous by thread: Re: ExtAudioFileWriteAsync- skip on write?
  • Next by thread: Playing in reverse
  • Index(es):
    • Date
    • Thread