<div dir="ltr"><div class="gmail-s-prose gmail-js-post-body">
<p>I have a Raspberry Pi 3b with a Hifiberry Amp4/DAC hat runs Moode Audio OS.</p>
<p>If I pick <code>Pulse</code> as they audio device in LedFx and play a sound file with <code>aplay sound_file.wav</code> my leds react to the music.</p>
<p>The problem is that after <code>aplay</code> has finished playing the
sound file if I then go try to use Moode audio player Moode audio won't
play music and gives me the following error:</p>
<p><code>MPD error Failed to open "ALSA Default" (alsa); Failed to open ALSA device "_audioout": Device or resource busy</code></p>
<p>This persists until I stop Ledfx. Is there a way I can switch back
and forth between aplay and Moode Audio player without having to stop
and start Ledfx? I am not looking to get LedFx working with Moode I only
want reactive lights when I play a song with <code>aplay</code>.</p>
<p>$ aplay -l <br></p><p>**** List of PLAYBACK Hardware Devices **** <br></p><p>card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry
DAC+ HiFi pcm512x-hifi-0 [HiFiBerry DAC+ HiFi pcm512x-hifi-0] <br></p><p>Subdevices: 0/1 <br></p><p>Subdevice #0: subdevice #0</p><p></p><p>$ amixer<br>Simple mixer control 'Master',0<br> Capabilities: pvolume pswitch pswitch-joined<br> Playback channels: Front Left - Front Right<br> Limits: Playback 0 - 65536<br> Mono:<br> Front Left: Playback 65536 [100%] [on]<br> Front Right: Playback 65536 [100%] [on]<br>Simple mixer control 'Capture',0<br> Capabilities: cvolume cswitch cswitch-joined<br> Capture channels: Front Left - Front Right<br> Limits: Capture 0 - 65536<br> Front Left: Capture 65536 [100%] [on]<br> Front Right: Capture 65536 [100%] [on]<br></p>
</div></div>