https://github.com/rohanrhu/node-win32volume
Node.js, set volume level or mute functions for Win32 platform.
https://github.com/rohanrhu/node-win32volume
audio level nodejs set sound volume win32 winapi windows
Last synced: 8 months ago
JSON representation
Node.js, set volume level or mute functions for Win32 platform.
- Host: GitHub
- URL: https://github.com/rohanrhu/node-win32volume
- Owner: rohanrhu
- Created: 2017-11-25T08:07:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-25T17:43:11.000Z (over 8 years ago)
- Last Synced: 2024-11-26T23:31:23.482Z (over 1 year ago)
- Topics: audio, level, nodejs, set, sound, volume, win32, winapi, windows
- Language: C++
- Homepage: https://www.npmjs.com/package/win32-volume
- Size: 3.91 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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..
```javascript
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