Skip to content

๐Ÿ”Š A node.js library to control the systems output volume

License

Notifications You must be signed in to change notification settings

farhadamjady/node-loudness

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

20 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

node-loudness

A node.js library to control the systems output volume

Usage

The library currently has support for four simple async functions. The volume is specified as an integer between 0 and 100 (inc.).

var loudness = require('loudness');

loudness.setVolume(45, function (err) {
    // Done
});

loudness.getVolume(function (err, vol) {
    // vol = 45
});

loudness.setMuted(false, function (err) {
    // Done
});

loudness.getMuted(function (err, mute) {
    // mute = false
});

OS Support

Currently Mac OS X and Linux (ALSA) is supported, please send a pull requests if you are using another setup.

About

๐Ÿ”Š A node.js library to control the systems output volume

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%