astronaughts / grunt-play

play sound with grunt
13 stars 1 forks source link

Sound not playing / Spawn ENOENT #1

Open filflora opened 10 years ago

filflora commented 10 years ago

I'd like to create a task, that plays a little 3sec mp3 when all the tasks are finished. The mp3 is in the same directory with the gruntfile.js.

I created the config file, and if I run it with: grunt play It writes: Running "play:ready" (play) task Playing => ./ready.mp3 Done without errors.

But I can't hear anything... the volume is turned up (as I was listening to music before) but nothing to hear unfortunately.

If I start it with the default tasks: grunt It says: Running "..." task ... Running "play:ready" (play) task Playing => ./ready.mp3

Running "watch" task Completed in....

Waiting...

Fatal error: spawn ENOENT

What could be the problem?

HurricaneChapman commented 10 years ago

I have this same issue on my Windows machine. My mac, however, plays the sound file as it should.

I tried using a wav and an mp3, neither work on Grunt under Windows.

LeeGDavis commented 10 years ago

Same thing here nothing under windows. In fact the file can reference anything including a bad path and it will indicate done without errors

Win 7x64 Grunt v0.4.4 Grunt-play "grunt-play": "^0.1.0"

miamarti commented 8 years ago

Same problem here in my linux machine

batje commented 5 years ago

I created a version (as a pull request) that addresses this issue and probably will solve it for most of you.

It's here #2