Does anyone know how to use these API's?
Printable View
Does anyone know how to use these API's?
Code for module
Code for a CommandButtonCode:Declare Function waveOutSetVolume Lib "winmm.dll" (ByVal uDeviceID As Long, ByVal dwVolume As Long) As Long
Declare Function waveOutGetVolume Lib "winmm.dll" (ByVal uDeviceID As Long, lpdwVolume As Long) As Long
Code for another CommandButtonCode:' Get the volume
retval = waveOutGetVolume(0, volume)
volume = volume And &HFFFF
DisplayVol = Hex(volume)
MsgBox (DisplayVol)
Code:' Set the volume to 50%
retval = waveOutSetVolume(0, &H7FFF7FFF)
yeaa megatron what i want to do is have 2 buttons
1 button that will make the volume louder
1 button that will make the volume softer
do u understand that
thanks
trav