问题
I am looking to use RemoteI/O for audio recording and playing.I am very poor to understand core audio, because of that I followed Amazing Audio open source.So far I can able to Record and play with the same code, now I am trying to record through microphone and play though iphone speaker to avoid mixing of two audios while using simultaneous audio playing and recording.
I have seen many posts in Stack Overflow that my question is duplicate, but I couldn't find exact answer for my problem. But I have hope to implement by seeing Apple document.
Questions:
How to implement simultaneous recording and playing using RemoteI/O?
Answer: Done using Amazing Audio Engine
How to stop mixing of two audios while playing my recorded audio and recording another track? (Eliminating audio samples which is playing through my app)
How to change the recording through microphone and playing through Iphone speakers?
回答1:
I've not used the Amazing Audio Engine but you can definitely do what you're asking using Core Audio. If you've read all the AAE documentation and are still stuck then I'd suggest learning more about Core Audio. C Adamson's text is very good for this.
You might also look at Apple-supplied sample code like Mixer Host or this sample code.
Lastly, here's sample code, again from C. Adamson, that demos both Remote IO and the AUFilePlayer unit.
Hope that helps.
来源:https://stackoverflow.com/questions/16768012/eliminating-current-playing-track-sound-in-recording-track