-
Notifications
You must be signed in to change notification settings - Fork 461
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
Snapcast client, set media.role in the OPTS to use ducking with pulseaudio #829
Comments
Could that media role property be hard-coded rather than a configuration option? Or is there a situation you wouldn't want this i.e. might you be using a snapcast stream as the actual announcement? |
Hi, would prefer hard coding, because the role will be music, any other role does not match:
Plus: it will be just a one-liner |
Hi, Thanks for the feedback. Anyway, even having it hard coded would be great, and as the overall change is reduced to a single line of code, it makes it even better! This is my very first feature request, and I am not sure on what the next steps are. I am very happy to give it a try with my limited and rusty programming skills if needed! |
I was thinking there might be those out there using snapcast as a multi-room PA or one-way intercom system where they'd want the "event" or "phone" roles so that everything else on the system is "ducking" and it's snapcast that gets heard over the top of some other music player. I'm only playing devils advocate here, hard-coding "music" sounds perfectly reasonable since that is the projects intended usage. |
@gianfer14 I'm even less experienced, I never opened a feature request somewhere :) |
Released in Snapcast v0.25.0 |
Is your feature request related to a problem? Please describe.
I am using multiple input sink in pulseaudio and Snapcast client is one of them.
When I try to use pulseaudio ducking feature (lowering volume to allow a announcement stream to be heard), currently the snapcast stream does not get quiter.
Describe the solution you'd like
It would be great to pass the following option to snapcast and add a media.role parameter, for example:
snapclient -s 0 -h 192.168.1.10 --player pulse:server=127.0.0.1,stream-properties="props,media.role=music
current options for pulseaudio are limited to the following:
Describe alternatives you've considered
I tried to set the ducking to operate on a global level, with no success.
I tried to send the string
snapclient -s 0 -h 192.168.1.10 --player pulse:server=127.0.0.1,stream-properties="props,media.role=music
in different ways, but as not currently supported it didn't set the media.role parameter.I then ran into this page, and found out that:
every stream may have the “media.role” property provided by application
Additional context
Currently, caling
pacmd list-sink-inputs
shows the parameter whic needs to be updated is module-stream-restore.id.Below a working input stream:
module-stream-restore.id = "sink-input-by-media-role:music"
And below current equivalent for Snapcast:
module-stream-restore.id = "sink-input-by-application-name:Snapcast"
The text was updated successfully, but these errors were encountered: