-
Notifications
You must be signed in to change notification settings - Fork 68
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
Changing the volume of a non-default sound device #8
Comments
I would like to control volume of an app, but I don't know how to do it if the app is on a non default device. This appears to be due to GetAllSessions() relies on Anyone know a way around this?
|
Anyone having an answer to the above? What i can tell is that within the GetSpeakers() function the above is pointing to GetDefaultAudioEndpoint
within the GetAllDevices funtion i am able to list sound output devices but the same data are not being collected.
Knowing this is looks like it could be possible to fetch the same values for output devices not considered "default" but not sure how that would be done. |
I sub-classed the AudioUtilities class and overrode the Get Speaker function to allow input of device id gathered from the GetAllDevices method.
I edited the endpoint example as such (including the new class):
|
Thanks @akaufman1 for helping us with this. I have not been able to try it yet but sure will! |
I always used SetMasterVolumeLevel to change the volume level on my pc, but now I have a problem because I need to change the volume of a different sound device. Is there a way to solve this?
The text was updated successfully, but these errors were encountered: