01-15-2023, 03:02 AM
(This post was last modified: 01-15-2023, 03:06 AM by gwurb.
Edit Reason: Added CamillaDSP SR and chunksize.
)
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:
Play a track for less than 10sec then go to next track:
Play a track for 15 seconds and then go to next track:
Is the issue related to the way that Moode handles MPD or CamillaDSP when starting a new track?
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 [38;5;208mWARN[0m [src/alsadevice.rs:157] Prepare playback after buffer underrun
2023-01-15 02:33:02.867833 [38;5;208mWARN[0m [src/alsadevice.rs:192] Wait timed out, playback device takes too long to drain buffer
2023-01-15 02:33:02.867957 [38;5;208mWARN[0m [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 [38;5;196mERROR[0m [src/bin.rs:344] Playback error: ALSA function 'snd_pcm_writei' failed with error 'EAGAIN: Try again'
2023-01-15 02:33:02.973876 [38;5;208mWARN[0m [src/alsadevice.rs:192] Wait timed out, playback device takes too long to drain buffer
2023-01-15 02:33:02.974003 [38;5;208mWARN[0m [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 [38;5;208mWARN[0m [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 [38;5;208mWARN[0m [src/alsadevice.rs:192] Wait timed out, playback device takes too long to drain buffer
2023-01-15 02:36:33.436684 [38;5;208mWARN[0m [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 [38;5;196mERROR[0m [src/bin.rs:344] Playback error: ALSA function 'snd_pcm_writei' failed with error 'EAGAIN: Try again'
2023-01-15 02:36:33.546379 [38;5;208mWARN[0m [src/alsadevice.rs:192] Wait timed out, playback device takes too long to drain buffer
2023-01-15 02:36:33.546543 [38;5;208mWARN[0m [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?