About
This is simple multi platform sound player. I get ideas from opener.
This module should be used when to play simple sound or sound effect. Not suitable for music players.
Installation
npm install simplayer -g # if you want to use in node npm install simplayer --save
If platform is linux, then need to install the alsa
# before we start the work, please update sudo apt-get updatesudo apt-get upgrade # install ALSA sudo apt-get install alsa-base alsa-utils
Usage
Simplayer function return child process instance.
var simplayer = ; var musicProcess = ; var musicProcess = ;
If platform is windows, then support wav file only.
var musicProcess = ;// orvar musicProcess = ;
If handle to close event, Please, in the following manner.
var simplayer = ; var musicProcess = ; musicProcess;
Use in the following manner in command line.
simplayer /path/to/sample.mp3
For Japanese
Author
- Maxmellon
LICENSE
MIT