Audio can only play from one source at a time.
Just using ALSA on a thinkpad yoga. I've noticed when I'm watching youtube videos and I pause one, that when I start a video in mpv the audio doesn't play. A similar thing happens in ncmpcpp.
Also sound can only play from one source at a time. For example either video or music or youtube but not both at once.
How can I fix this? Also, there seems to be a loud 'click' sound everytime I start a new youtube video - any ideas on what's causing this?
About this post
- Posted
- Archived
- Score
- 3 · 100% up
- Kind
- Text
- ID
- 2yvvvu
11 comments
Easiest fix: install PulseAudio
PulseAudio is great
dmix should be enabled by default. What does your
~/.asoundrclook like?This is my .asoundrc:
Well, that's obviously what is causing your issue. You are bypassing most of the ALSA features (including dmix, sample rate/format conversion and so on) and applications are sending their buffers directly to the hardware DAC. Since your sound card doesn't do hardware mixing, you can only have one audio source playing at the same time.
Get rid of that file and you'll be back to using dmix (software mixing ; the default).
Maybe software mixing/dmix isn't being used automatically?
https://wiki.archlinux.org/index.php/Advanced_Linux_Sound_Architecture#Dmix
I had this problem when I had mopidy (mpd) running as a system wide service with ALSA. As was said, you could install PulseAudio and use the workaround on the wiki page....or if you want to keep ALSA as I did, run mopidy (mpd) as the local user using a systemctl --user unit as laid out in the comments here.
I think PulseAudio is the easiest option :)