Eliminating current playing track sound in recording track

倖福魔咒の 提交于 2019-12-07 15:22:20

问题


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:

  1. How to implement simultaneous recording and playing using RemoteI/O?

    Answer: Done using Amazing Audio Engine

  2. 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)

  3. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!