dtcooper / raspotify

A Spotify Connect client that mostly Just Works™
https://dtcooper.github.io/raspotify
MIT License
4.63k stars 213 forks source link

Sound only playing in one speaker #535

Closed DrGurka closed 2 years ago

DrGurka commented 2 years ago

Due Diligence

What can we help you with?

I've done a fresh install of Debian Bullseye on an Raspberry pi 3 b+, installed raspotify with the easy install command. Everything works as expected but I only get sound from one of the speakers (left one and the subwoofer), it's a 2.1 sound system. I've tested the speakers with speaker-test -c2 -twav -l7 and I can hear sound coming from both speakers no problem at all. I've tried searching for similar issues but I can't find anyone having this issue. I would greatly appreciate some help!

DrGurka commented 2 years ago

I forgot to add that I've tried changing some config options I thought were relevant to the problem such as output format, sampling rate etc. But no option seems to fix the issue and I'm clueless to how I'm supposed to diagnos the problem.

(Edit) I just tried uninstalling Pulseaudio seeing other people had problems with it, didn't make a difference :/

DrGurka commented 2 years ago

I've found the problem, alsamixer identifies the headphones card (3.5mm) as a mono output. After runnin amixer i get this

Simple mixer control 'Headphone',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback -10239 - 400
  Mono: Playback 0 [96%] [0.00dB] [on]

I don't know how to change it to stereo though, gonna look into it further

DrGurka commented 2 years ago

Got it working now after deleting the file /home/pi/.asoundrc that was automaticly generated when i selected headphones as default playback device in the raspi-conf, got the answer from here https://forums.raspberrypi.com/viewtopic.php?t=257785&start=25#p1573916