Skip to content

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?

3 points11 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
2yvvvu

Author

11
posts
24
comments
1
media
View profile

11 comments

dmix should be enabled by default. What does your ~/.asoundrc look like?

2 points

This is my .asoundrc:

pcm.!default {
    type hw
    card PCH
}
ctl.!default {
    type hw
    card PCH
}
2 points

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).

3 points

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.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.