Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test speakers #217

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mate-volume-control/gvc-mixer-dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -1581,7 +1581,7 @@ on_test_speakers_clicked (GvcComboBox *widget, GvcMixerDialog *dialog)
return;
}

stream = find_device_test_stream (dialog, device);
stream = mate_mixer_context_get_default_output_stream (dialog->priv->context);
if (G_UNLIKELY (stream == NULL)) {
g_warn_if_reached ();
return;
Expand Down
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