| View previous topic :: View next topic |
| Author |
Message |
talkerzero Grandmaster Cheater
Reputation: 1
Joined: 24 Jul 2008 Posts: 560 Location: California
|
Posted: Fri Feb 13, 2009 6:00 pm Post subject: [C++ help] Finding speaker for waveOutSetVolume |
|
|
I used this code to mute my speakers:
| Code: | | waveOutSetVolume(0, 0); |
Then to restore it, I used:
| Code: | | waveOutSetVolume(0, 0xFFFF); |
Only one of my two speakers is restored. How can I find the other speaker and restore its volume?
|
|
| Back to top |
|
 |
sloppy Expert Cheater
Reputation: 0
Joined: 17 Aug 2008 Posts: 123
|
Posted: Fri Feb 13, 2009 9:16 pm Post subject: |
|
|
| The second parameter is a dword, 0xFFFFFFFF will set both channels.
|
|
| Back to top |
|
 |
talkerzero Grandmaster Cheater
Reputation: 1
Joined: 24 Jul 2008 Posts: 560 Location: California
|
Posted: Fri Feb 13, 2009 11:42 pm Post subject: |
|
|
| Thanks, worked. Close thread please.
|
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sat Feb 14, 2009 12:18 am Post subject: |
|
|
| Quote: | dwVolume
New volume setting. The low-order word contains the left-channel volume setting, and the high-order word contains the right-channel setting. A value of 0xFFFF represents full volume, and a value of 0x0000 is silence. |
when in doubt, MSDN.
also closed.
|
|
| Back to top |
|
 |
|