Re: Is it possible to record a MusicPlayer piece to an audio file faster than real-time?
Re: Is it possible to record a MusicPlayer piece to an audio file faster than real-time?
- Subject: Re: Is it possible to record a MusicPlayer piece to an audio file faster than real-time?
- From: Archagon <email@hidden>
- Date: Thu, 21 Apr 2016 22:45:17 -0700
Sorry to keep replying to myself, but I figured it out and thought I'd share my solution for posterity!
As the PlaySequence sample code[1] indicates, the trick is to use kAudioUnitSubType_GenericOutput instead of the default kAudioUnitSubType_RemoteIO. You also have to hook up your MusicTracks to actual AudioUnits, not virtual MIDI endpoints; kAudioUnitSubType_MIDISynth works best, but you have to preload your instruments as discussed here[2]. The kAudioUnitProperty_OfflineRender property doesn't work with the built-in iOS AudioUnits, but fortunately it's not required. Sadly, I don't think this process is currently possible with AVAudioEngine: you have to use AUGraph and friends.
_______________________________________________
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