Quote:
Originally Posted by audiofeel
Ok, hello everyone, who will help? how do I transfer the value from the "FTrackBar" to the "Volume" of the music?
that is, to put it simply, to make a volume control
I tried to do this
Code:
procedure TrackbarOnChange(Sender: TObject);
begin
MusicObj.SetVolume(VolTrackbar.GetValue);
end;
Inno says... not right
thank you in advance.
|
Code:
procedure Trackbar1OnChange(Sender: TObject);
begin
MusicObj.SetVolume(Round(Trackbar_Regular.GetValue));
end;
but why?
Code:
IXBass :
procedure SetVolume(Const Vol: Integer);
FTrackBar :
function GetValue: Single;