Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[b][u]I need control the volume using win32 API-midi,wav,etc.[/b][/u]

Status
Not open for further replies.

cervenan

Programmer
May 29, 2000
3
US
I need control the volume using win32 API. I know the function WaveOutSetVolume, but I don't exactly know,
how and where I can get handle for this function. Next, I don't know why the function WaveOutGetVolume doesn't work, even it is danger for my system (after using this function, system is not answering, I must reboot my computer). I want to know how I can control other devices - for midi, cd-rom, etc.
If you can help me, please do it.
 
Help on this functions You can find in Micrisoft SDK,<br>but:<br><br>WaveOutSetVolume(0, (Volume shl 16) or Volume));<br>set &quot;global&quot; Volume ( Volume = 0..$FFFF)<br><br>When You playing from TMediaPalyer then You can set volume:<br><br>auxSetVolume(MediaPlayer1.DeviceID,(Volume shl 16) or Volume));<br><br>In my programm this work.<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top