Jump to content
Mumble forums

Speaker & Mic Volume cannot be changed


shizus
 Share

Recommended Posts

Hello! We're working with Mumble for iOS and we are trying to develop our own client based on this mumble project we found on github.


The problem we have is that we cannot modify neither the speaker nor the mic volume with the user interface we created.


We use the exact same method called setupAudio on MUApplicationDelegate to initiate our program, but we have two sliders from 0 to 100 that call these two methods we paste here


 

- (void) setLocalSpeakerVolume: (int) volume {
  float actualVolume = (float) volume / 100.0f;
  NSLog(@"SPEAKER %f", actualVolume);
  _audioSettings.volume = actualVolume;
  MKAudio *audio = [MKAudio sharedAudio];
  [audio updateAudioSettings:&_audioSettings];
  [audio restart];
}

- (void) setLocalMicVolume: (int) volume {
  float actualVolume = (float) volume / 100.0f;
  NSLog(@"MIC %f", actualVolume);
  _audioSettings.micBoost = actualVolume;
  MKAudio *audio = [MKAudio sharedAudio];
  [audio updateAudioSettings:&_audioSettings];
  [audio restart];
}

 


The thing is we do not see any changes in any volume. We also modified setupAudio to set up another volume from the beginning but we don't even see anything changes, we still hear the same volume.

Could you help us?


Thank you very much in advance.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...