auxgetvolme用于非波形文件(CD)
waveoutgetvolume用于波形文件,
左:
var
v,t:longint;
beign
t:=trackbar1.position;
auxgetvolme(MideaPlayer1.DeviceID-1,@v);
v:=((t shl 8)or(v and$ffff0000));
auxsetvolme(MideaPlayer1.DeviceID-1,v);
end;
右:
var
v,t:longint;
beign
t:=trackbar2.position;
auxgetvolme(MideaPlayer1.DeviceID-1,@v);
v:=((t shl 24)or(v and$ffff0000));
auxsetvolme(MideaPlayer1.DeviceID-1,v);
end;