Reiswaffel on DeviantArthttp://creativecommons.org/licenses/by-nc-nd/3.0/https://www.deviantart.com/reiswaffel/art/Windows-7-Audio-Plugin-166316150Reiswaffel

Deviation Actions

Reiswaffel's avatar

Windows 7 Audio Plugin

By
Published:
24K Views

Description

I am using Windows 7 with multiple audio output devices (PC Speakers and a TV over HDMI). I found it annoying always having to switch between them through the Sound Settings dialog. With the plugin you can toggle between the devices or set a specific device as the default output device.

v1.2
I've removed the output device index as standard measure output and replaced it with the current volume. I also added a few bangs to change the volume.

v1.4
Stability and debug output. (Fixed a COM init issue).
Thanks to ~White-Baron for feedback on this.

v1.5
Fixed volume being 1% off sometimes.

v1.6
Added Mute/Unmute bangs, Meter shows volume -1 when muted.

Technical stuff:
This plugin uses Windows Mmdeviceapi and an undocumented API call to set the default audio device in Microsoft Windows 7. It also works in Windows Vista but will not work in Windows XP.

Install:
Depending on which version of Rainmeter you are running you have to pick the x32 or the x64 folder. Copy the dll to the Plugin directory (..rainmeter-install-path\Plugins). There is also an example config.

Credits:

-undocumented API header-
[link] by EreTIk
see: [link]

-button-
music-2.png from [link] by omercetin

07.06.2010 x32 crash? fixed
08.06.2010 x64 dll fixed (sorry ^^;)
20.06.2010 Stability
20.06.2010 Fixed volume 1% off
22.08.2010 see v1.6
Comments52
Join the community to add your comment. Already a deviant? Log In
goldenpipes's avatar
any chance something like this exists for win 8?