• 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
remoteIO - play audio file intermittently
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: remoteIO - play audio file intermittently
      • From: Aran Mulholland <email@hidden>
  • Prev by Date: Re: Does iPhone's iLBC Audio Format support 30ms mode?
  • Next by Date: Re: remoteIO - play audio file intermittently
  • Previous by thread: Re: Does iPhone's iLBC Audio Format support 30ms mode?
  • Next by thread: Re: remoteIO - play audio file intermittently
  • Index(es):
    • Date
    • Thread