if (qleft=false) and (qright=false) then begin t:=trackbar2.Position; v:=(t shl 8) or (t shl 24); waveoutsetvolume(0,v); end elseif (qleft=false) and (qright=true) then begin t:=form1.trackbar2.Position; waveoutgetvolume(0,@v); v:=v and $0000ffff or (t shl 24); waveoutsetvolume(0,v); t:=0; waveoutgetvolume(0,@v); v:=v and $ffff0000 or (t shl 8); waveoutsetvolume(0,v); end elseif (qleft=true) and (qright=false) then begin t:=form1.trackbar2.Position; waveoutgetvolume(0,@v); v:=v and $ffff0000 or (t shl 8); waveoutsetvolume(0,v); t:=0; waveoutgetvolume(0,@v); v:=v and $0000ffff or (t shl 24); waveoutsetvolume(0,v); end;
t:=trackbar2.Position;
v:=(t shl 8) or (t shl 24);
waveoutsetvolume(0,v);
end elseif (qleft=false) and (qright=true) then begin
t:=form1.trackbar2.Position;
waveoutgetvolume(0,@v);
v:=v and $0000ffff or (t shl 24);
waveoutsetvolume(0,v);
t:=0;
waveoutgetvolume(0,@v);
v:=v and $ffff0000 or (t shl 8);
waveoutsetvolume(0,v);
end elseif (qleft=true) and (qright=false) then begin
t:=form1.trackbar2.Position;
waveoutgetvolume(0,@v);
v:=v and $ffff0000 or (t shl 8);
waveoutsetvolume(0,v);
t:=0;
waveoutgetvolume(0,@v);
v:=v and $0000ffff or (t shl 24);
waveoutsetvolume(0,v);
end;