Skip to content

Commit

Permalink
fix mono test audio, issue mate-desktop#117
Browse files Browse the repository at this point in the history
Make Mono speker produce proper test adio instead of pink noise
  • Loading branch information
joakim-tjernlund committed Mar 29, 2024
1 parent d3d9964 commit 140960d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mate-volume-control/gvc-speaker-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 140960d

Please sign in to comment.