You are not logged in.

#1 2011-05-31 06:35:59

unr3st
Member
Registered: 2011-05-31
Posts: 6

[solved] Problems with multiple applications running sound...

Multiple programs on my system are unable to use sound at the same time. When any two programs that are supposed to output sound run together, the program that started the output first prevents the other from outputing. I read the Wiki page on ALSA, but have had no luck so far in identifying the problem. I do believe that I am using alsa, as the sound of the program with sound does change as I adjust the alsa mixer volumes.

This started happening when I reinstalled arch this moring with XFCE (I needed to add more space to root partition and replace my DE, and fealt it would be easiest to just reinstall the OS.) In the few days I was using KDE, the sound worked fine. I also previously used Ubuntu on this system in which the sound worked fine.

I am inclined to believe that It is either something I have not configured properly (however I did not do anything to sound setup in the KDE install) or a package that did not install with XFCE, but does with KDE-base.

EDIT: Also, If the sounds are coming from the same application they can both play, IE I can hear 2 youtube videos at the same time but not a youtube video and VLC or Skype.

Last edited by unr3st (2011-05-31 08:26:28)

Offline

#2 2011-05-31 06:54:23

brebs
Member
Registered: 2007-04-03
Posts: 3,414

Re: [solved] Problems with multiple applications running sound...

Run fuser.

Lots of info in my ~/.asoundrc

Last edited by brebs (2011-05-31 06:55:32)

Offline

#3 2011-05-31 07:02:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,427

Re: [solved] Problems with multiple applications running sound...

Offline

#4 2011-05-31 07:15:17

unr3st
Member
Registered: 2011-05-31
Posts: 6

Re: [solved] Problems with multiple applications running sound...

brebs wrote:

Run fuser.

Lots of info in my ~/.asoundrc

Here is the output,

[unrest@Uberschlecht ~]$ fuser -v /dev/snd/* /dev/dsp*
Specified filename /dev/dsp* does not exist.
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  unrest     1423 F.... pulseaudio
                     unrest     1483 f.... xfce4-mixer-plu
                     unrest     1541 F.... plugin-containe
/dev/snd/pcmC0D0p:   unrest     1541 F...m plugin-containe
/dev/snd/timer:      unrest     1541 F.... plugin-containe

There are no process in /dev/dsp


It may be worth adding that I had no .asoundrc in my home directory

I have also just discovered that flash seems to be the program that causes the interferences, as VLC and Skype run fine  together. I am going to try the instructions by Karol, reboot, and report the results.

Offline

#5 2011-05-31 07:39:01

karol
Archivist
Registered: 2009-05-06
Posts: 25,427

Re: [solved] Problems with multiple applications running sound...

If blocking snd_pcm_oss doesn't work, try the other way round - to enable it

modprobe snd_pcm_oss

(run it with 'sudo' or as root)
This should give you dev/dsp.

Offline

#6 2011-05-31 07:39:23

brebs
Member
Registered: 2007-04-03
Posts: 3,414

Re: [solved] Problems with multiple applications running sound...

Show the state of the opened audio:

cat /proc/asound/card0/pcm0p/sub0/hw_params

Offline

#7 2011-05-31 07:53:17

unr3st
Member
Registered: 2011-05-31
Posts: 6

Re: [solved] Problems with multiple applications running sound...

flash video open:

access: MMAP_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 1024
buffer_size: 8192


VLC playing an MP3

access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 8192
buffer_size: 16384

Offline

#8 2011-05-31 08:06:38

unr3st
Member
Registered: 2011-05-31
Posts: 6

Re: [solved] Problems with multiple applications running sound...

karol wrote:

If blocking snd_pcm_oss doesn't work, try the other way round - to enable it

modprobe snd_pcm_oss

(run it with 'sudo' or as root)
This should give you dev/dsp.

Didn't solve the problem. Also, there are still only snd, no dsp

fuser while playing a video on youtube:
/dev/snd/controlC0:  unrest     1422 F.... pulseaudio
                     unrest     1481 f.... xfce4-mixer-plu
                     unrest     1571 F.... plugin-containe
/dev/snd/pcmC0D0p:   unrest     1571 F...m plugin-containe
/dev/snd/timer:      unrest     1571 F.... plugin-containe

Offline

#9 2011-05-31 08:23:14

unr3st
Member
Registered: 2011-05-31
Posts: 6

Re: [solved] Problems with multiple applications running sound...

Sort-of solved. I installed gnash-gtk and it works well now, maybe I will try it later next time flashplugin or alsa are updated.

Offline

#10 2011-05-31 08:37:42

brebs
Member
Registered: 2007-04-03
Posts: 3,414

Re: [solved] Problems with multiple applications running sound...

Oh God, not pulseaudio again. Its job is to confuse us.

S32_LE is interesting, I'll default to that in my config, and see if anyone moans that it doesn't work. Hopefully it will improve audio quality sometimes.

Try my config, which standardizes the output, so dmix will actually work.

Offline

#11 2011-05-31 10:21:18

Dartoms
Member
Registered: 2011-05-03
Posts: 13

Re: [solved] Problems with multiple applications running sound...

I figure out that I have the same problem.

I was thinking it was just a problem between MPD and others applications, that's why I posted this topic.

But I made more tests and I realized that I can't play sound from 2 different applications in the same time.

I tried your asoundrc brebs, but I didn't solve the problem...


Arch 64 + XFCE

Offline

#12 2014-09-11 07:05:19

Tofeeq
Member
Registered: 2014-09-01
Posts: 24

Re: [solved] Problems with multiple applications running sound...

Follow this link, i have solved my problem following this one
-- url redacted - Trilby --

Last edited by Trilby (2014-09-11 13:37:54)

Offline

#13 2014-09-11 10:03:29

emeres
Member
Registered: 2013-10-08
Posts: 1,570

Re: [solved] Problems with multiple applications running sound...

@Tofeeq You dig up old posts, that are already solved, to link to a blog, which has two relevant lines, that you could have posted here directly, that are not the definite solution?

Offline

#14 2014-09-11 13:27:51

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,697
Website

Re: [solved] Problems with multiple applications running sound...

Closing: please do not necrobump - and heed the other advice offered by emeres.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

Board footer

Powered by FluxBB