Back | View original 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: 6/14/2008 7:27 AM
Views: 769
Votes: 0
Rating:   from Not Rated

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