Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
988 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 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...