summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoakim Tjernlund <[email protected]>2024-03-29 15:33:43 +0100
committerVictor Kareh <[email protected]>2026-07-30 22:24:18 +0000
commitd9866c883330c3bf56bd30f102c28810434df938 (patch)
treef9e9bc0859fa6ac891929d210f69df433741301c
parent3141152305e3d97371b1143ae51ce5feac099903 (diff)
downloadmate-media-master.tar.bz2
mate-media-master.tar.xz
fix mono test audio, issue #117HEADmaster
Make Mono speker produce proper test adio instead of pink noise
-rw-r--r--mate-volume-control/gvc-speaker-test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mate-volume-control/gvc-speaker-test.c b/mate-volume-control/gvc-speaker-test.c
index 04c6cf9..22ea8b3 100644
--- a/mate-volume-control/gvc-speaker-test.c
+++ b/mate-volume-control/gvc-speaker-test.c
@@ -174,6 +174,8 @@ sound_name (MateMixerChannelPosition position)
return "audio-channel-front-right";
case MATE_MIXER_CHANNEL_FRONT_CENTER:
return "audio-channel-front-center";
+ case MATE_MIXER_CHANNEL_MONO:
+ return "audio-channel-front-center";
case MATE_MIXER_CHANNEL_BACK_LEFT:
return "audio-channel-rear-left";
case MATE_MIXER_CHANNEL_BACK_RIGHT:
@@ -207,6 +209,10 @@ icon_name (MateMixerChannelPosition position, gboolean playing)
return playing
? "audio-speaker-center-testing"
: "audio-speaker-center";
+ case MATE_MIXER_CHANNEL_MONO:
+ return playing
+ ? "audio-speaker-center-testing"
+ : "audio-speaker-center";
case MATE_MIXER_CHANNEL_BACK_LEFT:
return playing
? "audio-speaker-left-back-testing"