-
Notifications
You must be signed in to change notification settings - Fork 27
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
Toggling/muting/unmuting target with --device flag requires --source flag (for sources), but not --sink (for sinks) #31
Comments
What are you suggesting as a better behavior? This Just Works™ for sinks because I've decided that devtype should default to "sink" -- this is generally what you want because it controls output volume (what I consider to be the most common usecase). Removing the default means command lines get more verbose. |
Yeah, I was just looking at the source, and noticed that Otherwise I'd suggest that if the EDIT: Well, I suppose this conflicts with the current behaviour that you can set the monitor of the sink just by specifying the source name:
The above command actually toggles the state of |
Makes sense. I don't know of any way to infer device type directly from the name, and the pulse API doesn't offer this idea of a "blind" lookup either. However, it does seem like we could just loop over the internal vectors of devices in the PulseClient until we find a match. Interested in writing a patch? |
Yeah, I will look at it. This will help me brush up my C++. Though this will take me a bit of time, if that's alright with you. :) |
Fine by me! Thanks! |
This turned out to be pretty straight forward. |
When directly targetting a device with the
--device
flag to toggle its state (or muting/unmuting it), the--source
flag is required for sources, but the--sink
flag is not equivalently required for sinks. Demonstration:The text was updated successfully, but these errors were encountered: