iphoneiosaudio-recording

Digital Mixing Of Audio File


I want to perform Digital Mixing of two audio files. I have used MixerHost- Apple's sample code for that. But I am unable to store mixed audio file on disk. Please guide me if anyone knows how to do that. I have tried the answers posted on same questions asked by somebody else but that will be recording only some part of audio as much as I play,but I want mixed audio of both the file. How can I write that file on disk?


Solution

  • Add an IO unit to the mixer and then write the audio data to a file using Extended Audio File Services on the new IO unit's callback function. You'll need to use ExtAudioFileWriteAsync to write the packets.

    Check out the reference here: https://developer.apple.com/library/ios/#documentation/MusicAudio/Reference/ExtendedAudioFileServicesReference/Reference/reference.html