• 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
Clearing kAudioUnitProperty_SetRenderCallback still a problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clearing kAudioUnitProperty_SetRenderCallback still a problem?


  • Subject: Clearing kAudioUnitProperty_SetRenderCallback still a problem?
  • From: Evan Olcott <email@hidden>
  • Date: Wed, 23 Apr 2008 23:18:57 -0500

Does anybody have any idea why this code, though it returns noErr, will crash the app only a few steps in?:

===

AURenderCallbackStruct nilCallback;


nilCallback.inputProc = nil;
nilCallback.inputProcRefCon = nil;


OSStatus err;
err = AudioUnitSetProperty(audioUnit, kAudioUnitProperty_SetRenderCallback, kAudioUnitScope_Input, 0, &nilCallback, sizeof(nilCallback));

===

I've tried calling this from the main thread.
I've tried calling this inbetween renders (using an NSLock)
I've tried calling this on a preRender notification, inside the CoreAudio thread

All of them fail similarly - a few steps in with the debugger and it seems like the stack is corrupted.

===

Is there any other way to safely clear a render callback from an AudioUnit? I'm using Leopard - one of the previous posts said there would be a new API for this in Leopard... am I missing it?

Ev
Technical Knowledge Officer
Head Programmer/Designer
Audiofile Engineering

http://www.audiofile-engineering.com/





 _______________________________________________
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: Clearing kAudioUnitProperty_SetRenderCallback still a problem?
      • From: William Stewart <email@hidden>
  • Prev by Date: AudioQueueGetCurrentTime behaving strangely
  • Next by Date: A way to check if an AudioUnit is initialized?
  • Previous by thread: AudioQueueGetCurrentTime behaving strangely
  • Next by thread: Re: Clearing kAudioUnitProperty_SetRenderCallback still a problem?
  • Index(es):
    • Date
    • Thread