The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: MPD and CamillaDSP errors
#1
There seems to be an issue with the way that CamillaDSP works on Moode. I haven't tested this outside of Moode so no idea if the issue rests purely in CamillaDSP or if its related to the way that Moode handles MPD and CamillaDSP.

The hardware is:
RP4 with USB DAC/audio interface, 4 channel output Motu M4.

CamillaDSP is setup to have:
2 channel input to 4 channel output mixer and a couple of filters. The pipeline is 2 input channels to 3 output channels with a filter on each of the 3 channels. Samplerate is 96000, chunksize is 2048 as per CamillaDSP github for samplerate of 96000.

Issue is reproduced by playing a track for about 10-15sec and then going to another track. Instead of playing the next track an error pops up. The error is 'MPD error Failed to open audio output". Pressing play straight after the error results in playback resuming.

Playing a track for less than 10sec, or longer than about 20sec does not result in the MPD error. But, there is a CamillaDSP error when playing a track for less than 10sec.

CamillaDSP logs:

Code:
2023-01-15 02:32:52.280360 INFO [src/bin.rs:420] Capture finished
2023-01-15 02:32:52.344207 INFO [src/bin.rs:410] Playback finished
2023-01-15 02:32:52.522939 INFO [src/bin.rs:711] CamillaDSP version 1.0.3
2023-01-15 02:32:52.523046 INFO [src/bin.rs:712] Running on linux, aarch64
2023-01-15 02:32:52.555524 INFO [src/alsadevice.rs:161] Starting playback from Prepared state
2023-01-15 02:33:02.760712 WARN [src/alsadevice.rs:157] Prepare playback after buffer underrun
2023-01-15 02:33:02.867833 WARN [src/alsadevice.rs:192] Wait timed out, playback device takes too long to drain buffer
2023-01-15 02:33:02.867957 WARN [src/alsadevice.rs:213] Retrying playback, error: ALSA function 'snd_pcm_writei' failed with error 'EAGAIN: Try again'
2023-01-15 02:33:02.889353 ERROR [src/bin.rs:344] Playback error: ALSA function 'snd_pcm_writei' failed with error 'EAGAIN: Try again'
2023-01-15 02:33:02.973876 WARN [src/alsadevice.rs:192] Wait timed out, playback device takes too long to drain buffer
2023-01-15 02:33:02.974003 WARN [src/alsadevice.rs:213] Retrying playback, error: ALSA function 'snd_pcm_writei' failed with error 'EAGAIN: Try again'
Jan 15 13:33 : output: Failed to play on "ALSA Default" (alsa): snd_pcm_poll_descriptors_revents() failed: No such device
Jan 15 13:33 : exception: Failed to open audio output
2023-01-15 02:33:15.488663 INFO [src/bin.rs:711] CamillaDSP version 1.0.3
2023-01-15 02:33:15.488845 INFO [src/bin.rs:712] Running on linux, aarch64
2023-01-15 02:33:15.517145 INFO [src/alsadevice.rs:161] Starting playback from Prepared state


Play a track for less than 10sec then go to next track:
Code:
2023-01-15 02:34:35.307898 WARN [src/alsadevice.rs:157] Prepare playback after buffer underrun

Play a track for 15 seconds and then go to next track:
Code:
2023-01-15 02:36:33.436529 WARN [src/alsadevice.rs:192] Wait timed out, playback device takes too long to drain buffer
2023-01-15 02:36:33.436684 WARN [src/alsadevice.rs:213] Retrying playback, error: ALSA function 'snd_pcm_writei' failed with error 'EAGAIN: Try again'
2023-01-15 02:36:33.461511 ERROR [src/bin.rs:344] Playback error: ALSA function 'snd_pcm_writei' failed with error 'EAGAIN: Try again'
2023-01-15 02:36:33.546379 WARN [src/alsadevice.rs:192] Wait timed out, playback device takes too long to drain buffer
2023-01-15 02:36:33.546543 WARN [src/alsadevice.rs:213] Retrying playback, error: ALSA function 'snd_pcm_writei' failed with error 'EAGAIN: Try again'
Jan 15 13:36 : output: Failed to play on "ALSA Default" (alsa): snd_pcm_poll_descriptors_revents() failed: No such device
Jan 15 13:36 : exception: Failed to open audio output
2023-01-15 02:36:35.821694 INFO [src/bin.rs:711] CamillaDSP version 1.0.3
2023-01-15 02:36:35.821805 INFO [src/bin.rs:712] Running on linux, aarch64
2023-01-15 02:36:35.830732 INFO [src/alsadevice.rs:161] Starting playback from Prepared state



Is the issue related to the way that Moode handles MPD or CamillaDSP when starting a new track?
Reply


Messages In This Thread
MPD and CamillaDSP errors - by gwurb - 01-15-2023, 03:02 AM
RE: MPD and CamillaDSP errors - by DRONE7 - 01-15-2023, 04:35 AM
RE: MPD and CamillaDSP errors - by gwurb - 01-15-2023, 05:09 AM
RE: MPD and CamillaDSP errors - by Tim Curtis - 01-15-2023, 12:04 PM
RE: MPD and CamillaDSP errors - by gwurb - 01-16-2023, 12:27 AM
RE: MPD and CamillaDSP errors - by gwurb - 01-16-2023, 12:47 AM
RE: MPD and CamillaDSP errors - by Tim Curtis - 01-16-2023, 01:16 AM
RE: MPD and CamillaDSP errors - by gwurb - 01-16-2023, 01:38 AM
RE: MPD and CamillaDSP errors - by Tim Curtis - 01-16-2023, 02:19 AM
RE: MPD and CamillaDSP errors - by gwurb - 01-16-2023, 03:22 AM
RE: MPD and CamillaDSP errors - by bitlab - 01-16-2023, 08:08 PM

Forum Jump: