10-12-2022, 03:17 PM
(This post was last modified: 10-12-2022, 03:18 PM by Tim Curtis.)
(10-12-2022, 06:54 AM)roderickvd Wrote:(10-11-2022, 11:44 PM)Tim Curtis Wrote: Yes alsa-cdsp does not do resampling but IIRC it update the camilla config with the source sample rate before piping the output to Camilla because Camilla itself does not do sample rate switching on-the-fly. Correct?
CamillaDSP does rate detection itself (and so does switch on the fly). I believe that alsa-cdsp can help by "hinting" the incoming sample rate but it's not necessary.
Do you think it is possible to slave the Alsa dummy mixer to _audioout? My asoundrc-fu is not up to par.
Still a bit confusing since the alsa cdsp doc states
Code:
To aid in handling hardware parameter changes such as sample rate, format, or the number of input channels the plugin can automatically replace fields in the YAML files with the appropriate parameters and restart CamillaDSP.
IIRC its required to enable automatic rate, format and channel switching possible with Camilla, otherwise Camilla has to be manually stopped/started when these parameters change for example when current song is 16/44.1 and next song in the Queue is 24/192.
I'm not sure about slaving the mixer device to _audioout but if I understand your config correctly it involves changing the mixer device param in MPD, Shairport-sync, Spotify etc configs. That could possibly be done with a script that has some SED's to apply or revert the changes.
Integrating this into moOde as an option though would involve quite a few moving parts and modifications. For example currently all the renderers default to using mixer softvol. That would need to be parameterized.
Food for thought.