• 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: Controlling AUGraph playback repeats
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controlling AUGraph playback repeats


  • Subject: Re: Controlling AUGraph playback repeats
  • From: Ron Fleckner <email@hidden>
  • Date: Thu, 6 Jul 2006 14:11:18 +1000


On 06/07/2006, at 7:12 AM, William Stewart wrote:


On 02/07/2006, at 5:44 PM, Ron Fleckner wrote:

Hi,

just getting my toes wet with Core Audio. I have a very short sound file (.09 of a second) which I'd like to play only once through. It is played through an AUGraph with a mixer. I've used the MatrixMixerTest example as a guide. I want to use a mixer because I want the user to be able to adjust the volume. It works OK and I can get metering to work, but because the sound file is so short, it sounds like a jack-hammer. I'd like to be able to set the graph to NOT repeat so that I can control when it plays. I'm trying to create a metronome.

Then, I think you're using the wrong approach.

AUGraphStart/Stop can be a time consuming operation - particularly if you are starting hardware.

For a metronome, you could implement this as an AU - then when it doesn't have a click, you just have the AU output silence - so you keep the graph running all the time.

Bill

Thanks so much for guidance. This is just the thing I need to know. Now I'm off to actually learn c++ properly.


Ron Fleckner
_______________________________________________
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: 
 >Controlling AUGraph playback repeats (From: Ron Fleckner <email@hidden>)
 >Re: Controlling AUGraph playback repeats (From: William Stewart <email@hidden>)

  • Prev by Date: Re: ProductID read from the USB descriptors for an audio device
  • Next by Date: Meet the Core Audio Engineers at WWDC!
  • Previous by thread: Re: Controlling AUGraph playback repeats
  • Next by thread: Re: Oxford OXFW971
  • Index(es):
    • Date
    • Thread