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

Question: Get Sink Inputs #4

Open
oliveirafilipe opened this issue Nov 6, 2020 · 1 comment
Open

Question: Get Sink Inputs #4

oliveirafilipe opened this issue Nov 6, 2020 · 1 comment

Comments

@oliveirafilipe
Copy link

Hi, i'm starting to think in build a sound controller that turns down a sink input volume when another, with high priority, is emitting sound.

I just started today to gather data and options to built it.

I think that i already realized that Pulseaudio's Sink Input is what I need to achieve this.

I saw your package and couldn't realize if it can list Sink Inputs. So, can I use your package to get Sink Inputs and manage their volume?

Thank you!

@humaidq
Copy link

humaidq commented May 26, 2021

From what it seems, the PlaybackStreams property is synonymous with sink inputs. Furthermore, you can see what properties are available at PulseAudio's D-Bus documentation (see [1]).

An example is provided with PlaybackStreams, including how to get other properties.

streams, _ := client.Core().ListPath("PlaybackStreams") // []ObjectPath

Here is an example on how to set properties.

e = dev.Set("Mute", !muted)

[1]: https://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/Developer/Clients/DBus/#propertylists

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