On Wed, 15 Oct 2003, Takashi Iwai wrote:

> At Wed, 15 Oct 2003 08:40:47 -0400,
> Paul Davis wrote:
> >
> > >Well, i am not author of this program actually. It is xmms plugin
> > >allowing  to use ALSA for sound output (alsa-xmms-0.9). I only wanted to
> > >modify it, to be able to use dmix. I see, that it is out of my abilities
> > >:-(  and, so i will have to conctact the author of it and ask him to
> > >correct it. It is pitty, because it will take time (if they ever do it).
> > >I thought, that ALSA interface is not dependent on way, how it is opened
> > >(because the same code with "hw:0:0" instead of "default" worked
> > >perfectly) or did not i comprehend anything?. I would like to
> > >understant, why opening "hw:0:0" works and only replacing it by
> > >"default" does not. It seems to mee very dificult for developpers....
> >
> > it would have helped enormously if you had stated that you were
> > talking about alsa-xmms up front. its a known and important piece of
> > code, and one that someone here is much more likely to fix than (sorry
> > to say) your own pet project.
> >
> > takashi or jaroslav - does using dmix involve any threads? could the
> > alsa-xmms plugin be making calls to some xmms error code from a
> > non-GUI thread?
>
> it's not related with threads, but it invokes a fork for a server
> process (a main control only, doesn't do mixing stuffs).
> it looks like there is something wrong with this together with xmms.
> i've seen that Xlib got a spurious async.
> magically enough, the attached patch seems to fix.
>
> Jaroslav, what is the reason of the second fork?  to daemonize?

Yes, we need completely to detach from parent.

> hmm, i still got many underruns.  something broken atm...

I will look on this. Sorry, I was not available for two days.

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to