• 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
Does AudioUnitRemovePropertyListenerWithUserData wait for all callbacks?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Does AudioUnitRemovePropertyListenerWithUserData wait for all callbacks?


  • Subject: Does AudioUnitRemovePropertyListenerWithUserData wait for all callbacks?
  • From: Ilya Konstantinov <email@hidden>
  • Date: Sat, 28 Feb 2015 16:46:13 +0200

Does AudioUnitRemovePropertyListenerWithUserData wait for all ongoing callbacks to finish? The docs don't specify this.

My rationale should be obvious:

my_context *m_ctx;

void setup() {
  m_ctx = new my_context;
  AudioUnitAddPropertyListener(..., m_ctx);
}

void destroy() {
  AudioUnitRemovePropertyListenerWithUserData(..., m_ctx);
  delete m_ctx; // <-- is this safe?
}

 _______________________________________________
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

  • Prev by Date: Re: Why does the AudioBuffer structure contain mNumberChannels?
  • Next by Date: Trying to get all samples from an audio file on disk into memory
  • Previous by thread: Re: Why does the AudioBuffer structure contain mNumberChannels?
  • Next by thread: Trying to get all samples from an audio file on disk into memory
  • Index(es):
    • Date
    • Thread