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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...