Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Mp3 Volume Adjuster waveOutGetVolume waveOutSetVolume volume control sound level
DaDll=strcat(DirWindows(1),"WINMM.DLL") bin1 = BinaryAlloc(4) Gosub GetVolume Message(LeftVolumeAmount, RightVolumeAmount) LeftVolumeAmount = LeftVolumeAmount + 500 RightVolumeAmount = RightVolumeAmount - 500 Message(LeftVolumeAmount, RightVolumeAmount) Gosub SetVolume EXIT ****************************GetVolume****************************************** :GetVolume WaveErr = DllCall(DaDll, long:"waveOutGetVolume",long:0, lpbinary:bin1) if WaveErr != 0 Message("error in waveOutGetVolume:", WaveErr) exit endif BinaryEODSet(bin1, 4) LeftVolumeAmount = BinaryPeek2(bin1,0) RightVolumeAmount = BinaryPeek2(bin1,2) RETURN ****************************SetVolume****************************************** :SetVolume TempLeftVolumeAmount = LeftVolumeAmount TempRightVolumeAmount = RightVolumeAmount ;;Gosub AdjustBalance BinaryPoke2(bin1, 0, TempLeftVolumeAmount) BinaryPoke2(bin1, 2, TempRightVolumeAmount) NewVolume = BinaryPeek4(bin1, 0) WaveErr = DllCall(DaDll, long:"waveOutSetVolume",long:0, long:NewVolume) if WaveErr != 0 Message("error in waveOutSetVolume:", WaveErr) exit endif RETURN *******************************************************************************
Article ID: W14734
Filename: Mp3 Volume Adjuster Program.txt
File Created: 2001:05:11:15:08:22
Last Updated: 2001:05:11:15:08:22