Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
990 views
in Technique[技术] by (71.8m points)

iphone - How to mute the mic's audio input and recognize only the internal audio of the device by using Auriotouch

I have used auriotouch codes in my app and when i record the audio, it shows the audio waves. So, while recording the sound, the mic recognizes the audio input and then the waves would act accordingly to whatever the sound the mic receives. So far its fine. But now, when I click on the play button to play the sound I just recorded, the mic's input should be off, so that the waves would act only according to the audio I recorded before and the waves should not act even if I speak while it plays the previously recorded audio.

So, its more or like muting the mic's input to avoid the recognition of external audio and recognizing only the internal audio of the device.

How this can be done?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You'll find a short tutorial here on reading and playing audio here as well as some links to Apple's documentation on Audio Units and more sample code.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...