Einzelnen Beitrag anzeigen

Benutzerbild von turboPASCAL
turboPASCAL

Registriert seit: 8. Mai 2005
Ort: Sondershausen
4.274 Beiträge
 
Delphi 6 Personal
 
#5

Re: function SetWaveVolume...

  Alt 28. Sep 2009, 18:17
Siehe dazu:
http://www.delphipraxis.net/internal...=686662#686662

http://www.swissdelphicenter.ch/de/showcode.php?id=630 schreibt:

Delphi-Quellcode:
{
  AVolume:
  The low-order word contains the left-channel volume setting,
  and the high-order word contains the right-channel setting.
  A value of 65535 represents full volume, and a value of 0000 is silence.
  If a device does not support both left and right volume control,
  the low-order word of dwVolume specifies the volume level,
  and the high-order word is ignored.
}



{ *** How to Use: ***}

// SetWaveVolume:

procedure TForm1.Button1Click(Sender: TObject);
var
  LVol: Word;
  RVol: Word;
begin
  LVol := SpinEdit1.Value; // max. is 65535
  RVol := SpinEdit2.Value; // max. is 65535
  SetWaveVolume(MakeLong(LVol, RVol));
end;
Matti
Meine Software-Projekte - Homepage - Grüße vom Rüsselmops -Mops Mopser
  Mit Zitat antworten Zitat