play a sound file
play a sound file
- Subject: play a sound file
- From: Bob Sabiston <email@hidden>
- Date: Wed, 20 Jul 2011 13:14:00 -0500
what is the deal with core audio man. i have laboriously gone through the Tim Bolstad tutorial, then merged that with Apple's MixerHost sample code, and now I can play synthy sound-FX and play music in the background made from a looping guitar sound and beat track.
That is great, but what I really want to do is replace AudioServicesPlaySystemSound. Those calls seem subject to the whim of the mute switch whereas the AUGraph stuff does not, or maybe is set differently?
So how would I do that? I feel like I know how to load the sound files into nodes but how do you restrict the playback to just once? Do you have to, or can you, keep track of what sample it is playing and then stop the bus when it hits the end?
It is surprising that Apple's audio is so complex and incoherent when the rest seems so polished these days.
Thanks Bob |
_______________________________________________
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