Using the latest version of Mopidy (0.11.1) on a Raspberry Pi (Model B) with Raspian Wheezy (hard float) with the latest firmware (3.6.11+), I experience horrible sound quality, but only with the Spotify backend. The audio is crackling and ticking.
The Raspberry is connected with HDMI to a receiver. Playing local MP3-files is no problem, both through Mopidy and with mpg321. Mp3 files are MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo.
When I lower the default ALSA sampling rate to 22 KHz (as noted on http://docs.mopidy.com/en/latest/installation/raspberrypi/#audio-quality-issues), the crackling and ticking disappears, but the overal quality is very bad then.
Since this issue only occurs using the Spotify backend, and using HDMI audio, I don't think the problem is with the Raspberry's hardware. Can you help me getting this to work? What can I do to debug this?
Can't believe I didn't notice this before, but I saw issue 299, and my CPU usage is also 100% during spotify playback. Guess I found the problem :(. But this must be something other people using the Raspberry are also experiencing, since I just followed the docs :-S
You could checkout http://www.woutervanwijk.nl/pimusicbox/
I fixed it there...
dd'ing the image to an SD-card as we speak :), already found your project. Thanks!
Works like a charm!
@woutervanwijk What exactly did you do to fix the Spotify sound quality in Pi MusicBox? Is it something we can patch in Mopidy, or something we can include in our Raspi guide?
I'm sorry, I just reinstalled everything with the hardfloat version of Raspbian and the problem was gone. I am planning to write a guide how I did it, but I'm a bit short on time at the moment. I'll let you know.
I have the same issue. I have spent a lot of time configuring all my services on my Raspbian, I don't really want to change my distro...
@woutervanwijk Can you give a hint on how to fix hit? A link on a commit? Anything that can help me! Pleaase :D
sorry, I really don't know what fixed it when I reinstalled everything. It just was gone.
You could try to look at the files I changed for musicbox:
I have fixed using puseaudio. Thanks anyway for your help 👍 .
If anyone has any about the root cause of the problem and/or know how to fix it using alsa, please share!
See #299 for the state on this going forward, closing this issue.