mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Fix sound control in GTK+ interface
This commit is contained in:
parent
31a77583d7
commit
f2676e5101
2 changed files with 4 additions and 4 deletions
|
|
@ -637,11 +637,11 @@ typedef enum { VOLUME_CTRL_PLAYBACK, VOLUME_CTRL_RECORD } VolumeControlType;
|
|||
|
||||
static void volume_control_value_changed(GtkScaleButton *button, gdouble value, gpointer user_data) {
|
||||
LinphoneCall *call = (LinphoneCall *)g_object_get_data(G_OBJECT(button), "call");
|
||||
VolumeControlType method = (VolumeControlType)g_object_get_data(G_OBJECT(button), "method");
|
||||
VolumeControlType type = (VolumeControlType)g_object_get_data(G_OBJECT(button), "type");
|
||||
|
||||
if(method == VOLUME_CTRL_PLAYBACK) {
|
||||
if(type == VOLUME_CTRL_PLAYBACK) {
|
||||
linphone_call_set_speaker_volume_gain(call, value);
|
||||
} else if(method == VOLUME_CTRL_RECORD) {
|
||||
} else if(type == VOLUME_CTRL_RECORD) {
|
||||
linphone_call_set_microphone_volume_gain(call, value);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 65ed768f7dde2571ffa731ad5264a93dbdc51cc1
|
||||
Subproject commit 0d7e5806533abe0043e10766ff985dd80c273dab
|
||||
Loading…
Add table
Reference in a new issue