Open silentcossack opened 3 months ago
Hi silentcossack
My understanding is that when cava starts it will set the sample rate at the loopback device to whatever is playing, then, when the audio sample rate should change through playing some different audio, the player finds that the loopback device has a particular rate and so synchronises to that. I believe that the solution would be for mpd_oled to restart cava every time that play resumes after being stopped, but I am no longer developing mpd_oled and so this won't be fixed.
Adrian.
Ok thanks, that makes sense. I did not realise that you are no longer developing this, too bad. I'll just run it without spectrum for now and see if I change the code to get rid of it and fill it with something else.
For anybody who comes across this, I decided to fork this repo and remove the spectrum display. I also enlarged the artist and song text to take up more display space and be visible from further away. You can grab the modified code here: https://github.com/silentcossack/mpd_oled
Hi, i'm so lost, hoping this is not a bug, but maybe it is.
This is hard to describe, but i'll try. I got Moode 9 running on rpi 4. Everything works great. I installed mpd_oled from source and it works too. If i run the mpd_oled with default cava settings (i.e. not specifying the source), then the spectrum is not working, but the audio output to my usb dac is great, unmodified, with rate matching that of source. So if source is 48KHZ, then output is 48Khz is well. If source is 44.1, then so is the output.
So if I run this: /usr/local/bin/mpd_oled -o3 -a 3c
Then spectrum does not work, but audio output quality changes with the source, which is perfect.
However, if I run this: /usr/local/bin/mpd_oled -o3 -a 3c -c alsa,hw:Loopback,1
Then spectrum does work, but the audio output quality is stuck at whatever the first song was. So if the first song was 48kHz, then all subsequent music will be output at that rate, not matching the source. If i stop mpd_oled, guess what, output starts matching the source again. If I start mpd_oled with the -c option, same problem. It is as if whenever mpd_oled (or cava) connects to the loopback, something starts resampling all outputs, including my usb dac output.
I have the loopback option enabled in Moode web interface. I tried running mpd_oled_moode_audio_copy_install - didn't change anything. Below is the output of mpd_oled_moode_audio_copy_report in case it helps.
What could be changing the rate of output when spectrum is running?