Gentoo Archives: gentoo-user

From: Yoav Luft <yoav.luft@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Sound card is only usable by one application at a time
Date: Sat, 05 Dec 2009 21:37:13
Message-Id: ace253cb0912051336p6196249cjc2abcb610075cd86@mail.gmail.com
In Reply to: [gentoo-user] Re: Sound card is only usable by one application at a time by Nikos Chantziaras
1 alsasound is on boot runlevel, so it's running. Still, some apps, like
2 flash movies in firefox, don't behave nicely.
3
4 On Sat, Dec 5, 2009 at 7:15 PM, Nikos Chantziaras <realnc@×××××.de> wrote:
5 > You didn't mention whether you tried running the alsasound service in order
6 > to get dmix.  If enabled, it doesn't matter what sound device the apps want
7 > to open.
8 >
9 > On 12/05/2009 05:51 PM, Yoav Luft wrote:
10 >>
11 >> hmmm. I've managed to focus the problem: Some programs try to access
12 >> to sound device called "hw:0,0" and there for do not allow it to be
13 >> shared. MPD was one of them, and when I changed the setting in
14 >> mpd.conf to using "default" it works. The flash player, though, still
15 >> tries to access the hardware directly. I'm not sure how to reconfigure
16 >> it. I'm using the adobe player.
17 >> Can anyone think of away of making all programs use "default" sound
18 >> output rather than "hw:0,0"?
19 >> Should I report that as a bug to the mpd package maintainer, that the
20 >> default setting try to access the sound device directly?
21 >>
22 >> On Sat, Dec 5, 2009 at 6:12 AM, Joshua Murphy<poisonbl@×××××.com>  wrote:
23 >>>
24 >>> On Fri, Dec 4, 2009 at 4:43 PM, walt<w41ter@×××××.com>  wrote:
25 >>>>
26 >>>> On 12/03/2009 09:08 PM, Joshua Murphy wrote:
27 >>>> ...
28 >>>>>
29 >>>>> Lately, I've had zero issues with alsa pretty much configuring itself
30 >>>>> properly, given I'm using the in kernel alsa drivers for my systems...
31 >>>>> and it hasn't required any manual configuration of dmix or similar to
32 >>>>> function properly. Last time I used a separate sound daemon (aside
33 >>>>> from a short stent with Ubuntu on my netbook that, I think, had me
34 >>>>> using pulseaudio), I was running esound to manage audio from a
35 >>>>> headless box over my network... and ESD was playing nicely with other
36 >>>>> straight alsa apps on the same box...
37 >>>>
38 >>>> I discovered a few weeks ago that I could completely delete all traces
39 >>>> of arts, pulse, *and* esd, and still I can listen to a podcast from
40 >>>> npr.org with firefox and play an mp3 using audacious at the same time.
41 >>>> (Which drives me totally nuts, BTW, and I did it only as a test.)
42 >>>>
43 >>>> As you say, alsa seems to DTRT by itself these days.  The only thing
44 >>>> I'm not sure about is whether the gnome-panel volume/mixer applet is
45 >>>> now doing what esound used to do.
46 >>>>
47 >>>> If you still have esound installed you can try it yourself.  Just
48 >>>> remove the arts, esd, and pulse USE flags first, then remove any/all
49 >>>> of those packages from the machine and revdep-rebuild.  It's amazing
50 >>>> how many packages are linked against esound and AFAICT they no longer
51 >>>> need to be.  (This applies to gnome, of course.)
52 >>>>
53 >>>> OTOH, I haven't tested every sound-related app on my machine, so I
54 >>>> might be missing some important exceptions.
55 >>>
56 >>> All Gnome's volume/mixer applet does, AFAIK, is the same as alsamixer,
57 >>> on a less cli/ncurses interface... just volume control for the
58 >>> channels the card tells the driver to tell the alsa subsystem it has
59 >>> ;) ... it doesn't have anything more, really, to do with the actual
60 >>> 'mixing' than that, and it works just as well without it, as evidenced
61 >>> by my netbook with ratpoison, no arts, esd, pulseaudio, etc...
62 >>> listening to a radio stream on one aterm that's running mplayer
63 >>> (outputting to bare alsa) and getting prompt and proper alerts from
64 >>> Skype at the same time.
65 >>>
66 >>> 'Course, all the anecdotal evidence in the world won't make the
67 >>> problem the OP is seeing.
68 >>>
69 >>> --
70 >>> Poison [BLX]
71 >>> Joshua M. Murphy
72 >>>
73 >>>
74 >>
75 >>
76 >
77 >
78 >
79 >

Replies