Open anthonio9 opened 1 year ago
Sample format issue? Try -f S32_LE
for alsaloop or check the supported formats by arecord -Dhw:RAVENNA --dump-hw-params
for both hw: devices.
... and basically it's a wrong idea to combine two clocks (two different cards) with the multi plugin ... The clocks difference will increase in time and the stream won't be usable.
Thanks, it seems to work quite well with the -f S32_LE
option, but I've only tested it for a minute or so.
Would a sound server (like pipewire) make this combination work better? I know that pipewire does have some tricks, but have no idea what would that turn out to be in the long run.
Is there a way to inspect that clock differece? That would actually help me a lot.
My goal is to mix the output of two sound cards (RAVENNA from bondagit and hifiberry), then pass it to a DSP pcm plugin. As it's not possible with
dmix
(dmix only supports output to hw devices) the reasonable next step wasmulti
plugin, but my tries always end up in a failure. Below is a quite standardmulti
configuration inspired by alsa docs that I'm using:This is run with
alsaloop
to be input into an extplug plugin that easily accepts 4 channels of audio -alsadsp
:This results in a failure, moreover running
quad2
also results in the same type of error.Next step was to try plug pcm:
With
quad_plug
the same error occurs, withquad_plug2
the error is as below:Then the last thing I tried was to force the 48kHz sampling rate directly on the hardware devices with the help of the following config:
and again it ends up with a failure:
I know that both these cards are capable of running 48kHz, I'm doing that all the time. So what could be the cause of this error?
alsadsp
wants them to be 48kHz and if run separately it all works well, both cards set themselves according toalsadsp
requirements. It works even if there's only one card in the multi plugin that occupies all 4 output ports - my conclusion is that it's not a problem ofalsadsp
. Are there any other steps that could help solving the issue?