Skip to content

rohanrhu/node-Win32Volume

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

win32-volume

Set volume level or mute functions for Win32 platform.

Install

Install module with npm npm i win32-volume

Example

Set volume or mute..

var Win32Volume = require('win32-volume');

Win32Volume.setVolume(0.7, function (success) {
    console.log('setVolume:', success);
});

Win32Volume.setMute(true, function (success) {
    console.log('setMute:', success);
});

// or you can use blocking functions..

var result = Win32Volume.setMuteSync(true);
var result = Win32Volume.setVolumeSync(0.7);

License

MIT