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!

⤷ Disable/enable speaker

Use SystemParametersInfo function with SPI_SETBEEP parameter.

procedure TForm1.Button1Click(Sender: TObject);
begin
  SystemParametersInfo(SPI_SETBEEP, 0, nil, SPIF_UPDATEINIFILE);
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  SystemParametersInfo(SPI_SETBEEP, 1, nil, SPIF_UPDATEINIFILE);
end;
More for developers
Databases for Amazon Associates
Amazon Categories
Amazon Nodes