SPECIAL OFFER        Order and save right now!
20% off with the 729824315 dicscount code for Ultimate Pack and any another product for Delphi from Greatis Programming!

⤷ Get sound volume

To get sound volume, use WaveOutGetVolume function. A sound volume is variable of DWord type.

uses mmsystem;

procedure TForm1.Button1Click(Sender: TObject);
var
  Volume: DWord;
  MyWaveOutCaps: TWaveOutCaps;
begin
  if WaveOutGetDevCaps(
    WAVE_MAPPER, 
    @MyWaveOutCaps, 
    sizeof(MyWaveOutCaps))=MMSYSERR_NOERROR then
  begin
    WaveOutGetVolume(WAVE_MAPPER, @Volume);
    Label1.Caption:=IntToStr(Volume);
  end;
end;
More for developers
Databases for Amazon Associates
Amazon Categories
Amazon Nodes