• 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: Making a Looping App - direction?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Making a Looping App - direction?


  • Subject: Re: Making a Looping App - direction?
  • From: Orestis Markou <email@hidden>
  • Date: Thu, 25 Oct 2012 13:57:07 +0300

The SchedulePlayer AudioUnit should be able to do this, from what I understand it's essentially a FilePlayer where the audio data is already in memory (most probably it's the other way round, of course). You should be able to trigger playback immediately, and if you want to write the data to a file you can do that using the ExFile API.

Note: I haven't tried this before, just spent a lot of time with the CoreAudio documentation.

On 25 Οκτ 2012, at 10:28 π.μ., Jack Nutting <email@hidden> wrote:



On Thu, Oct 25, 2012 at 4:31 AM, Pier <email@hidden> wrote:
Would I be able to use the FilePlayer AudioUnit to do this? 

1. Record to a file
2. Playback the file immediately after recording without any gap and loop it
3. Record another file while the first file is still playing
4. Playback this file again immediately in sync with the first file, with audio from both files playing at the same time
.... and so on

The only thing I'm not sure about is #2. I'm not sure if you can point a FilePlayer at a file that is still being written, which is what you'd probably need to do to make it playback smoothly right from the start. Anyone else know?

Everything else can definitely be done.

--
// Jack Nutting
// email@hidden
// http://nuthole.com
// http://learncocoa.org
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: Making a Looping App - direction?
      • From: Pier <email@hidden>
References: 
 >Making a Looping App - direction? (From: Pier <email@hidden>)
 >Re: Making a Looping App - direction? (From: Jack Nutting <email@hidden>)
 >Re: Making a Looping App - direction? (From: Aran Mulholland <email@hidden>)
 >Re: Making a Looping App - direction? (From: Pier <email@hidden>)
 >Re: Making a Looping App - direction? (From: Jack Nutting <email@hidden>)

  • Prev by Date: Re: Making a Looping App - direction?
  • Next by Date: Playing synchronized audio files loops on iOS
  • Previous by thread: Re: Making a Looping App - direction?
  • Next by thread: Re: Making a Looping App - direction?
  • Index(es):
    • Date
    • Thread