Can anyone help me out? I cannot seem to figure out how to set the volume on a sound started via winmm through the mciSendString API in windows. I am able to play and stop the sound fine but I cannot figure out the syntax to control the volume.
$mci ||= new Win32::API("winmm", "mciSendStringA", 'PPNN', 'N') || ret
+urn 0;
#- Init $retstring
my $retstring=" "x256;
#- Open mp3 file
$mci->Call("open \"$file\" alias mysound",$retstring,256,0);
#- Play it
$mci->Call("play mysound from 1",$retstring,256,0);
# - how do I set the volume?