Board index » delphi » HOW TO CHANGE SOUND VOLUME FROM DELPHI

HOW TO CHANGE SOUND VOLUME FROM DELPHI

Is it possible to change system sound volume from DELPHI ?
Arminio.Gr...@USA.Net                     Pozega, Croatia
http://www.geocities.com/SiliconValley/Way/9629/arminio.htm
                                  <father since 07.07.1998>
 

Re:HOW TO CHANGE SOUND VOLUME FROM DELPHI


Arminio,
  Check out this link.

http://www.geocities.com/SiliconValley/Lakes/1636/wave.htm

This should help you out

Good Luck!!
    -Dave
Inprise Certified Delphi 4 Client/Server developer
http://www.erols.com/dparsons

Arminio Grgic - GrGa wrote in message <36cdda00.989...@news.tel.hr>...

Quote
>Is it possible to change system sound volume from DELPHI ?
>Arminio.Gr...@USA.Net                     Pozega, Croatia
>http://www.geocities.com/SiliconValley/Way/9629/arminio.htm
>                                  <father since 07.07.1998>

Re:HOW TO CHANGE SOUND VOLUME FROM DELPHI


Arminio Grgic - GrGa rta:

Quote
> Is it possible to change system sound volume from DELPHI ?
> Arminio.Gr...@USA.Net                     Pozega, Croatia
> http://www.geocities.com/SiliconValley/Way/9629/arminio.htm
>                                   <father since 07.07.1998>

Hello!

I Think it's possible. Try to associate the <iLeft> and <iRight>
variable with a TrackBar component.

{be sure that iLeft and iRight msut be between 0-31}
var
Left, Right: Integer;

Begin

     iLeft   := TrackBar1.Position
     iRight := TrackBar2.Position;
     WaveOutSetVolume(0, iLeft*2048*65536+iRight*2048);

End;

Attila Gbriel  (at...@hotmail.com)

Other Threads