• 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: Oops! Digest messed me up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Oops! Digest messed me up


  • Subject: Re: Oops! Digest messed me up
  • From: Bill Stewart <email@hidden>
  • Date: Tue, 2 Oct 2001 12:31:17 -0700

On Saturday, September 29, 2001, at 10:53 PM, Brian Barnes wrote:

I asked more questions thinking my original (and now out of date) questions weren't answered, but Bill got to them. Yahoo for Bill!

So, a follow up to the previous question. AudioOutputUnitStop does NOT seem to work within a callback, but returning an error does. Whatever I do, I never clip a sound, I'll fill the buffer's with zeros if I run out of data and cancel the sound on the next callback.

You can only call AudioOutputUnitStop on the output unit - if you call it on any other type of audio unit you'll get a component selector error (this may also not have worked in 10.0 but it does in 10.1

I have a very nice piece of sample code; Bill, if you or anybody else wants it (or wants to take a look at it) it could form the basis for a good developer example, which I think is really needed (if you can't tell by my dumb guy questions at the very beginning.) The code handles, in a nice API:

reading in AIFFs
keeping a cache of pre-calculated sounds
keeping a cache of audio units
looping or single-shot sounds
panning

Sounds good - do you have a public web site you can post this on?

Bill


[>] Brian
_______________________________________________
coreaudio-api mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/coreaudio-api


mailto:email@hidden
tel: +1 408 974 4056
__________________________________________________________________________
Cat: "Leave me alone, I'm trying to nap... Ah, What's that clicking noise?"
__________________________________________________________________________


  • Prev by Date: Re: Stopping a Audio Unit From Callback PROPERLY
  • Next by Date: Re: Linking together audio units
  • Previous by thread: Re: Location of IOAudioDevice.h and other I/O Kit Headers
  • Next by thread: A note about my sample code
  • Index(es):
    • Date
    • Thread