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 silent #190

Open
joakim-tjernlund opened this issue Jun 24, 2022 · 3 comments
Open

Test Speakers silent #190

joakim-tjernlund opened this issue Jun 24, 2022 · 3 comments

Comments

@joakim-tjernlund
Copy link

Did always play on DP/HDMI port 2 what ever output I selected.
This little patch fixed it:

--- a/mate-volume-control/gvc-mixer-dialog.c	2022-06-24 05:29:30.252892748 +0200
+++ b/mate-volume-control/gvc-mixer-dialog.c	2022-06-24 05:29:58.353551464 +0200
@@ -1545,7 +1545,7 @@
                 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;

Choosing output port requires multiple clicks on that port for it to be selected but I think that is a different issue

@joakim-tjernlund
Copy link
Author

Also, the Mono speaker test can be make to play sound and not just noise by adding:

--- gvc-speaker-test.c.org	2022-06-26 14:04:52.236419200 +0200
+++ gvc-speaker-test.c	2022-06-26 14:11:36.486615875 +0200
@@ -174,6 +174,8 @@
                 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 @@
                 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"

Did not find a Mono test so I just borrowed center-test

@raveit65
Copy link
Member

Can you prepare a pull request please?

@raveit65
Copy link
Member

And please use 2 commits as they are 2 issues after reading alsa and pulse reports.

joakim-tjernlund added a commit to joakim-tjernlund/mate-media that referenced this issue Mar 29, 2024
Test Speaker select random output on audio HW with several outputs.
Make it use the the selected ouput instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants