22 Commits
Author SHA1 Message Date
justin j. mosesandGitHub ccd3d1cc9d Adding support for player args and returning the child_process (#17)
* Adding support for player args and returning the process

* Updating tests, test deps for node 4+, readme

* Slight readme update
2016-10-22 14:28:14 -03:00
Hrvoje Šimić 71d9438c58 add support for passing options to child process 2016-10-10 18:29:54 +02:00
Tony Dewan 91f2ae939a Undo excessive deletions 2015-12-20 10:24:17 -05:00
Tony Dewan ccec70f5ce Allow URLs if player is mplayer
mplayer supports URLs, so in the cases where mplayer is the
selected player, play-sound should also support URLs.

- update logic to check for files AND URL format
- update test assertion to account for new error language
2015-12-19 19:55:28 -05:00
Michael Hogg d4d698cd34 Remove unnecessary call to spy.callsArg() 2015-10-21 07:31:48 +01:00
Michael Hogg 1f5e6e5d21 Mock MP3 file is required when testing for missing players 2015-10-21 07:31:48 +01:00
Michael Hogg e5c55b4931 Update spy.calledWith() to match child_process.execFile() 2015-10-21 07:31:47 +01:00
Michael Hogg 01488e626e Update proxied child_process method to execFile() 2015-10-21 07:31:47 +01:00
Hrvoje Šimić eec777ad33 stop playing actual sounds on travis 2014-09-19 12:13:24 +02:00
Hrvoje Šimić 8705e2b2d3 provide a function for testing
```
var player = require('play-sound')()
player.test()
```

closes #1
2014-09-18 22:27:01 +02:00
Hrvoje Šimić 330654f51c fix travis 2014-09-15 10:29:21 +02:00
Hrvoje Šimić d04aac8258 callbacks instead of event emitter 2014-09-14 13:07:05 +02:00
Hrvoje Šimić 51b17e697e child_process shouldn't be overridable, use proxyquire 2014-09-12 11:18:49 +02:00
Hrvoje Šimić 1f7f8900ad start using find-exec 2014-09-12 10:50:39 +02:00
Hrvoje Šimić 10e2e3e2bb fix wording for file missing error 2014-09-09 17:33:48 +02:00
Hrvoje Šimić e200e4e285 emit errors 2014-09-09 17:30:04 +02:00
Hrvoje Šimić 03b75c3087 add some default players 2014-09-09 17:03:05 +02:00
Hrvoje Šimić 6d82c24711 add tests for overridable options 2014-09-09 16:58:10 +02:00
Hrvoje Šimić 2a30a805a3 start throwing errors when audio tool was not found 2014-09-09 16:28:26 +02:00
Hrvoje Šimić 5567afa4de start throwing errors when file doesn't exist 2014-09-09 15:48:46 +02:00
Hrvoje Šimić e1b2eba838 add most basic functionality 2014-09-09 13:49:10 +02:00
Hrvoje Šimić 5397c4930c start with this 2014-09-09 00:08:40 +02:00