remoteIO - play audio file intermittently
remoteIO - play audio file intermittently
- Subject: remoteIO - play audio file intermittently
- From: Ash Gibson - Smartface <email@hidden>
- Date: Tue, 05 Jun 2012 07:43:03 +1000
Hi everyone,
Using AudioServicesPlaySystemSound I can fire off sounds from short audio files as needed. What I am hoping to do is the same functionality except using audio units.
I have setup a remoteIO like
http://atastypixel.com/blog/using-remoteio-audio-unit/ with recording and playback callbacks. I have also worked through the MixerHost sample app so I can see how to load audio files into memory. What I am not sure of is how to push these files in as needed, and produce silence when needed.
For example on the MixerHost app there is the following line which makes the audio file loop:
if (sampleNumber >= frameTotalForSound) sampleNumber = 0;
What if I didn't want to loop and instead wanted silence after the first loop?
Thanks,
Ash
_______________________________________________
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