-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Interfere in pulseaudio volume between mpv and libmpv #1578
Comments
The |
No idea. When launched client only, the volume control displays the name what I set to |
I think this happens when the audio-device-list property is queried. It creates a connection without the proper client name set. It should disconnect immediately, though, and I see no reason why it would override the stream name. (Or maybe this is a different bug.) |
Partially fixed. Now I can see both controls in mixer window and I can control them independently when they're running at the same time. However, for instacne, If I execute client after excuted Now I doubt pulseaudio because they're synced even if I can see separated controls. |
Looks like PulseAudio loves to force application devs to add shitty singletons. |
Or maybe I'm misunderstanding... needs more investigation. |
(Yeah, I was misunderstanding.) I tested it, I can't see that they conflict in any way. What might cause confusion is that the stream title contains "mpv" by default. You can override it by setting the |
You can't reproduce this? Setting |
No.
Then maybe dump and check the values ao_pulse.c passes to the pulseaudio APIs. |
Finally I found the source. It's the line set PA_PROP_MEDIA_ROLE:
If I comment out that line, no more interference exists. I don't know the exact purpose of each role because the document says nothing, it seems that the PA_PROP_MEDIA_ROLE is designed for making it possible to interfere between streams using PulseAudio at the very first time. I found that VLC also sets "video" role and I can see that VLC and mpv also interferes each other. With some test, "video" and "music" also interferes but "game" does not interfere. |
This is a small oversight. The client name (as set on command line options or, more importantly, the client API) was not set when listing devices e.g. via the "audio-device-list" property. Might or might not fix #1578. Also adjust the log level for an unrelated message. (cherry picked from commit c152c59)
The "video" role caused some trouble with other things too. But it's entirely a pulseaudio issue. |
This is a small oversight. The client name (as set on command line options or, more importantly, the client API) was not set when listing devices e.g. via the "audio-device-list" property. Might or might not fix mpv-player#1578. Also adjust the log level for an unrelated message.
PulseAudio supports per-application volume and it kept by PulseAudio.
When I changed volume in mpv, the changed volume also applied in libmpv client.
I've tried to set
audio-client-name
but it only changes the string in volume control and didn't solve the problem.Is there any solution for this?
The text was updated successfully, but these errors were encountered: