Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Programmatically enable/disable a playback device in Windows 7

by bulk88 (Priest)
on Nov 09, 2012 at 04:32 UTC ( #1003058=note: print w/ replies, xml ) Need Help??


in reply to Programmatically enable/disable a playback device in Windows 7

I did further research. For WinXP/2000, for "Sound Playback" "Default Device" combo box http://www.sennheisercommunications.com/sennheiser/globals.nsf/resources/Sounds_and_audio_devices_properties.jpg/$File/Sounds_and_audio_devices_properties.jpg . You use waveOutMessage in C with DRVM_MAPPER_PREFERRED_SET (it is 0x2016 for desktop winxp) and a -1 for the deviceid argument, the lparam and wparam also have to be filled. That is how the MS sound CP applet works. Google says that does not work for NT 6.
  • Comment on Re: Programmatically enable/disable a playback device in Windows 7

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1003058]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2016-06-27 01:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (335 votes). Check out past polls.