title: aplay not working when spawn inside nodejs, but works fine from command-line
body: <p>I have this simple command that runs just fine from the command line:</p>
  
  <p><code>aplay --format=S16_LE --rate=24000 -D sysdefault ./test.wav</code></p>
  
  <p>However, when I run it inside nodejs from the spawn, it does not work,</p>
  
  <p><code>var aplay = cp.spawn('aplay', [
      '--format=S16_LE',
      '--rate=24000',
      '-D sysdefault',
      './test.wave']);</code></p>
  
  <p>I get the following message from stderr</p>
  
  <p><code>ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) 
  Unknown PCM  sysdefault
  aplay: main:722: 
  audio open error: No such file or directory
  </code></p>
  
  <p>I am using a raspberry pi with a usb audio device.</p>
  
  <p>Also, it does not work when i change -D sysdefault to -D plughw:0,0</p>
  
  <p>Thanks for any help you can provide me.</p>