En  Fa
Discovering: Tips & Tricks  > Languages  > Delphi Tips  > How to change windows sound volume
 
 

How to change windows sound volume

   

How to change windows sound volume

Description

This method changes windows sound volume with waveOutSetVolume API method

Delphi code

type
    tvolRange=1..15;
Procedure ChangeVolume(value:tvolRange);
var
    Count, i: integer;
begin
    Count := waveOutGetNumDevs;
    for i := 0 to Count do
    begin
        waveOutSetVolume(i,longint(value*4369)*65536+longint(value*4369));
    end;
end;

Details
      
Writer: Salar Khalilzadeh
Date Sent: 6/14/2008 7:27 AM
Views: 745
Votes: 0
Rating:   from Not Rated

Your Rating:

bookmark this
 

There is no comment for this topic.
Language:

Copyright © 2009 SoftProjects.org | About | Valid XHTML | CSS