Hi Mark,Thank you for the reply. paplay also works but there's no change. It's not the playing of the song that locks up the device and causes Moode audio not to be able to use it, it's the starting of ledfx. Once I do systemctl start ledfx the moode audio player can no longer use the output device regardless if I play a sound file with aplay, paplay or don't play a sound file at all. Moode audio can't use the device until I do systemctl stop ledfx.El mar, 7 may 2024 a las 10:48, Mark Gaiser (<markg85@xxxxxxxxx>) escribió:Can you use paplay instead?That is the pulseaudio aplay drop-in replacement.I'm guessing you won't have "device or resource busy" errors when using paplay.I did not test this! But do let us know if it works for you :)On Tue, May 7, 2024 at 3:24 PM Richard Reina <gatorreina@xxxxxxxxx> wrote:I have a Raspberry Pi 3b with a Hifiberry Amp4/DAC hat runs Moode Audio OS.
If I pick
Pulse
as they audio device in LedFx and play a sound file withaplay sound_file.wav
my leds react to the music.The problem is that after
aplay
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:
MPD error Failed to open "ALSA Default" (alsa); Failed to open ALSA device "_audioout": Device or resource busy
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
aplay
.$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sndrpihifiberry [snd_rpi_hifiberry_dacplus], device 0: HiFiBerry DAC+ HiFi pcm512x-hifi-0 [HiFiBerry DAC+ HiFi pcm512x-hifi-0]
Subdevices: 0/1
Subdevice #0: subdevice #0
$ amixer
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 65536 [100%] [on]
Front Right: Playback 65536 [100%] [on]
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 65536
Front Left: Capture 65536 [100%] [on]
Front Right: Capture 65536 [100%] [on]
Have you tried changing your device in ledfx to pulse?
Again no idea if this works, I don't know nor use ledfx :) Just trying to help out.
On Tue, May 7, 2024 at 6:14 PM Richard Reina <gatorreina@xxxxxxxxx> wrote: