LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Multiple applications cannot access the sound device at the same time (http://www.linuxquestions.org/questions/debian-26/multiple-applications-cannot-access-the-sound-device-at-the-same-time-4175419150/)

ninioArg 07-28-2012 11:16 PM

Multiple applications cannot access the sound device at the same time
 
That's the problem. I can't listen from two or more source at the same time. There is no problem from just one source. For example: I can't listen 1 MP3 from Amarok and other from Rhythmbox, or music from Amarok and sound from a Youtube video.

I read half of internet about this issue, without solutions, all post are old or talk about alsa-conf or some other useless information.

And of course, I got installed all jack family, alsa family, gstream family, and many other families.

uname -a:
Code:

Linux cosmo 2.6.32-5-amd64 #1 SMP Sun May 6 04:00:17 UTC 2012 x86_64 GNU/Linux
lspci | grep Audio:
Code:

00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)
05:00.1 Audio device: ATI Technologies Inc RV710/730

lsmod | grep snd:
Code:

snd_seq_dummy          1343  1
snd_hda_codec_atihdmi    2251  1
snd_hda_codec_via      47887  1
snd_hda_intel          20035  4
snd_hda_codec          54292  3 snd_hda_codec_atihdmi,snd_hda_codec_via,snd_hda_intel
snd_hwdep              5380  1 snd_hda_codec
snd_pcm_oss            32591  0
snd_mixer_oss          12606  1 snd_pcm_oss
snd_pcm                60487  4 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_midi            4400  0
snd_rawmidi            15515  1 snd_seq_midi
snd_seq_midi_event      4628  1 snd_seq_midi
snd_seq                42881  6 snd_seq_dummy,snd_seq_midi,snd_seq_midi_event
snd_timer              15598  2 snd_pcm,snd_seq
snd_seq_device          4493  4 snd_seq_dummy,snd_seq_midi,snd_rawmidi,snd_seq
snd                    46526  19 snd_hda_codec_via,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore              4598  1 snd
snd_page_alloc          6249  2 snd_hda_intel,snd_pcm


Dutch Master 07-29-2012 06:21 AM

Yes, but did you install a mixer? ;)

ninioArg 07-29-2012 07:06 AM

Yes sir, or I think so. I got installed alsa-utils (which comes with alsamixer) and alsamixergui, if it's what you mean.

Dutch Master 07-29-2012 02:14 PM

Right, I assume then you un-muted the required channels? (going through all the usual suspects here!)

ninioArg 07-30-2012 01:55 AM

Yes, the required channels are un-muted. I think the problem is when another application use the sound card, because the first got muted until I do something that makes "re-open" the audio channel for it; after this, the second one got muted.

ninioArg 07-31-2012 12:21 PM

[Solved]
 
Finally I could solve this issue. I uninstalled Everything of alsa and Pulseaudio, and reinstall pulseaudio. After that, I made this file:
Code:

pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}
pcm.phononpulse {
type plug
slave.pcm {
type pulse
}
hint {
show on
description "PulseAudio"
}
}

Pay attention to:
Code:

pcm.phononpulse {
That's the key.

Thank you everybody for your time :)


All times are GMT -5. The time now is 05:32 PM.