TooTallNate / node-speaker

Output PCM audio data to the speakers
655 stars 147 forks source link

specified PCM format is not supported by "alsa" backend #84

Open eliran-kononowicz opened 8 years ago

eliran-kononowicz commented 8 years ago

I'm using AV player with the AAC.js plugin.

Works fine when playing on MAC OSX but throws this error when running in Debian:

Error: specified PCM format is not supported by "alsa" backend
    at Speaker._open (/home/pi/node_modules/av/node_modules/speaker/index.js:157:11)
    at Speaker._write (/home/pi/node_modules/av/node_modules/speaker/index.js:242:21)
    at doWrite (/home/pi/node_modules/av/node_modules/speaker/node_modules/readable-stream/lib/_stream_writable.js:237:10)
    at writeOrBuffer (/home/pi/node_modules/av/node_modules/speaker/node_modules/readable-stream/lib/_stream_writable.js:227:5)
    at Speaker.Writable.write (/home/pi/node_modules/av/node_modules/speaker/node_modules/readable-stream/lib/_stream_writable.js:194:11)
    at Readable.ondata (_stream_readable.js:528:20)
    at emitOne (events.js:77:13)
    at Readable.emit (events.js:169:7)
    at Readable.read (_stream_readable.js:360:10)
    at flow (_stream_readable.js:743:26)