I've got a Raspberry Pi 4 with an AudioInjector Stereo card attached. Raspbian Desktop. I use this Pi as a Family Media PC. We play videos via VLC, pass audio from the TV through the input channel and then out to the speakers. We also have Squeezelite installed to act as a music player. To enable "audio sharing" between applications, I'm utilizing the ALSA dmix plugin. I've heard that PulseAudio doesn't work well with Squeezelite.
My current problem is in deciphering Sample Rates. If I set my default dmix rate defaults.pcm.dmix.rate 48000 as such I'm able to play local files that are 48000 or 44100. However, this makes 44100 local files, streams and even Spotty play too fast in Squeezelite.
When I change the rate to 44100 then I'm no longer able to play 48000 files.
Does anyone know a way to correctly utilize dmix to accommodate for multiple sample rates? Or a dmix alternative that plays well with Squeezelite?
My current problem is in deciphering Sample Rates. If I set my default dmix rate defaults.pcm.dmix.rate 48000 as such I'm able to play local files that are 48000 or 44100. However, this makes 44100 local files, streams and even Spotty play too fast in Squeezelite.
When I change the rate to 44100 then I'm no longer able to play 48000 files.
Does anyone know a way to correctly utilize dmix to accommodate for multiple sample rates? Or a dmix alternative that plays well with Squeezelite?