shime / play-sound

Play sounds by shelling out to one of the available audio players.
MIT License
208 stars 31 forks source link

feat:Allow concatenation of parameters #43

Open paulomarcos opened 4 years ago

paulomarcos commented 4 years ago

With this change calls to the player that passes multiple arguments such as trim and vol will be accepted and interpreted by the player.

audio = playSound.play( filePath, { play: ['trim', TRIM_SECONDS, 'vol', VOLUME_LEVEL] }, (err: any) => { if (err) { return; } });

shime commented 2 years ago

Thanks, @paulomarcos! Can you rebase this with master and make sure the tests are passing?