• 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
Stopping a Audio Unit From Callback PROPERLY
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Stopping a Audio Unit From Callback PROPERLY


  • Subject: Stopping a Audio Unit From Callback PROPERLY
  • From: Brian Barnes <email@hidden>
  • Date: Sun, 30 Sep 2001 01:26:22 -0400

I am very very close to a working coreaudio replacement for the sound manager stuff in dim3 (www.klinksoftware.com). There is ONE thing that I can't figure out.

In my Input_Callback for the audio unit, if the sound is a looping sound, I just restart the buffer. If it's single-shot, then I need to stop the sound. Right now I return -1, and the error state *seems* to put the buffer into stop mode, and then I can launch another sound on it.

I can't imagine this is the supported way! Is this OK? Will it continue to work? Or is there a better way?

Please help me before I guess again!

[>] Brian


  • Follow-Ups:
    • Re: Stopping a Audio Unit From Callback PROPERLY
      • From: andybull <email@hidden>
  • Prev by Date: Re: Set kAudioUnitProperty_StreamFormat seems to be broken
  • Next by Date: Oops! Digest messed me up
  • Previous by thread: Component List application
  • Next by thread: Re: Stopping a Audio Unit From Callback PROPERLY
  • Index(es):
    • Date
    • Thread