You are not logged in.

#1 2011-10-14 16:57:34

mandalar
Member
Registered: 2011-10-14
Posts: 7

[Solved] ALSA with multiple applications

Hi everyone,
I have alsa installed and sound works well with one application but when I use more than one, only the first outputs sound.
I tried some workarounds I read (install pulseaudio for instance) but none of it worked, so I'm kind of lost here since I'm not really good into alsa / dmixer internals.

While vlc launched, I get this :

$ speaker-test -D plughw:0
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Playback open error: -16,Device or resource busy

I'd love if one of you could help :-)

PS : don't know if it is of any help but here are the outputs of some commands I saw in alsa related problems

$ lspci | grep Audio
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
01:00.1 Audio device: ATI Technologies Inc RV635 Audio device [Radeon HD 3600 Series]

$ cat /proc/asound/modules
0 snd_hda_intel
1 snd_hda_intel

Last edited by mandalar (2011-10-22 17:57:27)

Offline

#2 2011-10-14 22:55:06

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

Re: [Solved] ALSA with multiple applications

mandalar wrote:

plughw:0

"hw" is "hardware" - you're asking it to bypass dmix.

Useful debugging info:

wget -O alsa-info.sh http://www.alsa-project.org/alsa-info.sh
bash alsa-info.sh --upload

Then show us the URL that the script shows at the end.

Offline

#3 2011-10-15 12:33:24

mandalar
Member
Registered: 2011-10-14
Posts: 7

Re: [Solved] ALSA with multiple applications

"hw" is "hardware" - you're asking it to bypass dmix.

My bad but it doesn't work with multiple vlc windows either. How to test it correctly by the way ?

Here is the diagnosis url :
http://www.alsa-project.org/db/?f=fe8e4 … 0066af3571

Offline

#4 2011-10-15 12:43:05

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

Re: [Solved] ALSA with multiple applications

Standard simple test:
speaker-test -D default -c 2 -t wav

Show the processes using sound:
fuser -fv /dev/snd/* /dev/dsp*

Offline

#5 2011-10-17 21:25:10

mandalar
Member
Registered: 2011-10-14
Posts: 7

Re: [Solved] ALSA with multiple applications

brebs wrote:

Show the processes using sound:
fuser -fv /dev/snd/* /dev/dsp*

It outputs :

$ fuser -fv /dev/snd/* /dev/dsp
Cannot stat /dev/dsp: Bad address
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  aurelien   3017 F.... pulseaudio
/dev/snd/controlC1:  aurelien   3017 F.... pulseaudio
/dev/snd/pcmC1D3p:   aurelien   3017 F...m pulseaudio


And the test "speaker-test -D default -c 2 -t wav" does not work (no error and seems to go well but no sound).

Offline

#6 2011-10-22 17:56:47

mandalar
Member
Registered: 2011-10-14
Posts: 7

Re: [Solved] ALSA with multiple applications

I "solved" the problem.
Pulseaudio was activated and didn't work, I deactivated it (commenting first par of /etc/asound.conf).
Thanks for the pointers (I read the alsa-info report and spotted how to deactivate pulseaudio).

Offline

#7 2014-09-11 07:53:11

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

Re: [Solved] ALSA with multiple applications

Solved my problem by following this link

--url redacted--

Offline

#8 2014-09-11 08:58:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved] ALSA with multiple applications

Please don't necrobump: https://wiki.archlinux.org/index.php/Fo … Bumping.27

And don't paste spam links.



Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB