BearWare / TeamTalk5

TeamTalk 5 Development
www.bearware.dk
Other
323 stars 164 forks source link

Use iOS gain feature instead of TeamTalk built-in #145

Closed bear101 closed 8 years ago

bear101 commented 8 years ago

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

Will probably work better for increasing microphone gain when in speaker mode/video conf.

bear101 commented 8 years ago

setInputGain doesn't work in video conf mode, so in this case TT_SetSoundInputGain() should be used.

Method inputGainSettable() returns false. https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVAudioSession_ClassReference/#//apple_ref/occ/instp/AVAudioSession/inputGainSettable

Becomes too complicated to have two independent (incompatible) input gains.