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

Articles

 

 

Tips and Tricks

 


 

How to change windows sound volume

Print version  

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: 3/16/2008 7:27 AM
Views: 290
Votes: 0
Rating: Not Rated from Not Rated

Your Rating:
bookmark this
 

There is no comment for this topic.

Language:

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