Re: [Alsa-devel] Build-in mixer

2003-10-17 Thread Takashi Iwai
At Fri, 17 Oct 2003 09:41:27 +0200 (CEST), Jaroslav wrote: > > On Wed, 15 Oct 2003, Takashi Iwai wrote: > > > At Wed, 15 Oct 2003 10:53:51 -0400, > > Paul Davis wrote: > > > > > > >it's not related with threads, but it invokes a fork for a server > > > >process (a main control only, doesn't do mi

Re: [Alsa-devel] Build-in mixer

2003-10-17 Thread Jaroslav Kysela
On Wed, 15 Oct 2003, Takashi Iwai wrote: > At Wed, 15 Oct 2003 10:53:51 -0400, > Paul Davis wrote: > > > > >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

Re: [Alsa-devel] Build-in mixer

2003-10-17 Thread Jaroslav Kysela
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,

Re: [Alsa-devel] Build-in mixer

2003-10-17 Thread Jaroslav Kysela
On Wed, 15 Oct 2003, 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 conctac

Re: [Alsa-devel] Build-in mixer

2003-10-15 Thread Takashi Iwai
At Wed, 15 Oct 2003 17:01:07 +0200, I wrote: > > At Wed, 15 Oct 2003 10:53:51 -0400, > Paul Davis wrote: > > > > >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 t

Re: [Alsa-devel] Build-in mixer

2003-10-15 Thread Takashi Iwai
At Wed, 15 Oct 2003 10:53:51 -0400, Paul Davis wrote: > > >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 asy

Re: [Alsa-devel] Build-in mixer

2003-10-15 Thread Paul Davis
>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. >From ht

Re: [Alsa-devel] Build-in mixer

2003-10-15 Thread Takashi Iwai
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

Re: [Alsa-devel] Build-in mixer

2003-10-15 Thread Paul Davis
>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 i

Re: [Alsa-devel] Build-in mixer

2003-10-15 Thread Dan Tihelka
Paul Davis wrote: Starting to open device Opening user device: --default-- Xlib: unexpected async reply (sequence 0x963)! your program uses threads, right? or it forks at some point? and your alsa_error() function involves calls to GUI functions? this error is from Xlib, it has noth

Re: [Alsa-devel] Build-in mixer

2003-10-15 Thread Paul Davis
> Starting to open device > Opening user device: --default-- > Xlib: unexpected async reply (sequence 0x963)! your program uses threads, right? or it forks at some point? and your alsa_error() function involves calls to GUI functions? this error is from Xlib, it has nothing

Re: [Alsa-devel] Build-in mixer

2003-10-15 Thread Dan Tihelka
Paul Davis wrote: perhaps you know this, but "an error occured" is an extremely content-free way of describing a problem. I am sorry. I know it. But i don't know, if it was error caused by ALSA. There is a part of code in audio.c in alsa-xmms-0.9 which probably caused the error (I add som

Re: [Alsa-devel] Build-in mixer

2003-10-14 Thread Paul Davis
>I experimented with xmms ALSA output plugin and i forced "default" >instead of "hw:0:0" to the audio opening command: > >snd_pcm_open ( &handle, "default", SND_PCM_STREAM_PLAYBACK, >SND_PCM_NONBLOCK ); > >but a error occured. I would like to ask you, if it is sufficient to perhaps you know thi

Re: [Alsa-devel] Build-in mixer

2003-10-14 Thread Dan Tihelka
Frank Barknecht wrote: As I wrote some day ago, it is possible to play two or more sounds simultenaously with mentioned setting. But only with 'aplay' I tried to use xmms with ALSA 0.9 output plugin and Mplayer with ALSA-0.9.x support and it is impossible to play any two sound streams at the

Re: [Alsa-devel] Build-in mixer

2003-10-13 Thread Clemens Ladisch
Daniel Tihelka wrote: > [dmix] > Aad what about streams with different sampling frequencies? The dmix plugin always uses a fixed sample rate. The default is 48000, but you can change it as follows: pcm.!default { type plug slave.pcm { type dmix ipc_

Re: [Alsa-devel] Build-in mixer

2003-10-12 Thread Frank Barknecht
Hallo, Daniel Tihelka hat gesagt: // Daniel Tihelka wrote: > As I wrote some day ago, it is possible to play two or more sounds > simultenaously with mentioned setting. But only with 'aplay' > > I tried to use xmms with ALSA 0.9 output plugin and Mplayer with ALSA-0.9.x > support and it is impo

Re: [Alsa-devel] Build-in mixer

2003-10-11 Thread Daniel Tihelka
Cituji z e-mailu od Takashi Iwai <[EMAIL PROTECTED]>: > > it's becoming an FAQ... :) > > pcm.!default { > type plug > slave.pcm "dmix" > } > > the point is '!' prefix, which means overriding the existing > definition. > As I wrote some day ago, it is possible to play two or more

Re: [Alsa-devel] Build-in mixer

2003-10-10 Thread Dan Tihelka
Takashi Iwai wrote: it's becoming an FAQ... :) pcm.!default { type plug slave.pcm "dmix" } the point is '!' prefix, which means overriding the existing definition. Takashi Great, it works. Thank You very much for your help. But i have one other question. When i tried to play m

Re: [Alsa-devel] Build-in mixer

2003-10-08 Thread Takashi Iwai
At Wed, 08 Oct 2003 07:24:16 -0400, Paul Davis wrote: > > >I don't know, if the term "mixer" is used correctly, because i am not > >expert on it. I have in mind to use ALSA by more than one programs at > >the same time (simultaneously), and ALSA itself should mix these audio > >streams to one a

Re: [Alsa-devel] Build-in mixer

2003-10-08 Thread Paul Davis
>I don't know, if the term "mixer" is used correctly, because i am not >expert on it. I have in mind to use ALSA by more than one programs at >the same time (simultaneously), and ALSA itself should mix these audio >streams to one and play it via soundcard. just so you know, although this functi

[Alsa-devel] Build-in mixer

2003-10-08 Thread Dan Tihelka
Hallo every great ALSA developers, I have one question. Is audio stream mixer planned or build in in ALSA, to be able to use different programs with audio output together? Like a case when i'm playing a movie (e.g. via mplayer with ALSA support) and i really want to listen an ICQ or mail con