control built in microphone volume in ios

I am implementing a VOIP application where I want to mute the microphone for some time. For your information, I don't want to stop processing outgoing audio.How can I achieve this?

Answers


NSError *error;
[[AVAudioSession sharedInstance] setInputGain:0.0f error:&error];
  • (BOOL)setInputGain:(float)gain error:(NSError * _Nullable *)outError Changes the input gain to the specified value.

https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVAudioSession_ClassReference/#//apple_ref/occ/instm/AVAudioSession/setInputGain:error:


Need Your Help

Passing Object in get Request to WebAPI 2

angularjs asp.net-web-api2

selectedLocation is always null on the Server

updating a patch to the new version of a program

patch

I have this patch developed for mailman-2.1.13, and I would like to port it to mailman-2.1.15