0.0.6 • Published 7 years ago

node-pulseaudio v0.0.6

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

node-pulseaudio

A node.js library to control the systems output volume

Usage

The library currently has support for simple async functions and returns promise object. The volume is specified as an integer between 0 and 100

var PulseAudio = require('node-pulseaudio');

var promise = PulseAudio.get()
promise
  .then(volume => {
    console.log(volume) //Ex.: 42
  })
  .catch(err => {
    console.log(err)
  })

var promise = PulseAudio.set(25)
promise
  .then(response => {
    console.log(response)
  })
  .catch(err => {
    console.log(err)
  })

OS suport

Current only Linux is supported, please send a pull request if you are using another setup.

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details

0.0.6

7 years ago

0.0.55

7 years ago

0.0.5

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago