* HW mix [not found] <E1DNSGJ-00024N-Di@externalmx-1.sourceforge.net> @ 2005-04-18 9:46 ` Dino 2005-04-18 9:57 ` Clemens Ladisch 0 siblings, 1 reply; 5+ messages in thread From: Dino @ 2005-04-18 9:46 UTC (permalink / raw) To: alsa-devel hi all, i want to mix some pcm streams using hardware (where possible). One process with some thread witch want to play with one device (hw:0,0). Actually i simply open the device as it can (32 at max for me) with snd_pcm_open() and hw:0,0 as the device. It's seems to work but i don't know if it's the rigth way. tnx, Dino ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id\x14396&op=click ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: HW mix 2005-04-18 9:46 ` HW mix Dino @ 2005-04-18 9:57 ` Clemens Ladisch 2005-04-18 10:06 ` Jaroslav Kysela 0 siblings, 1 reply; 5+ messages in thread From: Clemens Ladisch @ 2005-04-18 9:57 UTC (permalink / raw) To: Dino; +Cc: alsa-devel Dino wrote: > i want to mix some pcm streams using hardware (where possible). One process > with some thread witch want to play with one device (hw:0,0). Actually i simply > open the device as it can (32 at max for me) with snd_pcm_open() and hw:0,0 as > the device. It's seems to work but i don't know if it's the rigth way. "hw:0,0" will fail if another program has already opened it. Use "hw:0" which instructs ALSA to open the first available subdevice. HTH Clemens ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: HW mix 2005-04-18 9:57 ` Clemens Ladisch @ 2005-04-18 10:06 ` Jaroslav Kysela 2005-04-19 6:06 ` Glenn Maynard 0 siblings, 1 reply; 5+ messages in thread From: Jaroslav Kysela @ 2005-04-18 10:06 UTC (permalink / raw) To: Clemens Ladisch; +Cc: Dino, alsa-devel On Mon, 18 Apr 2005, Clemens Ladisch wrote: > Dino wrote: > > i want to mix some pcm streams using hardware (where possible). One process > > with some thread witch want to play with one device (hw:0,0). Actually i simply > > open the device as it can (32 at max for me) with snd_pcm_open() and hw:0,0 as > > the device. It's seems to work but i don't know if it's the rigth way. > > "hw:0,0" will fail if another program has already opened it. > Use "hw:0" which instructs ALSA to open the first available subdevice. Nope, hw:0,0 is correct (CARD,DEVICE). You meant probably hw:0,0,0 (CARD,DEVICE,SUBDEVICE). Jaroslav ----- Jaroslav Kysela <perex@suse.cz> Linux Kernel Sound Maintainer ALSA Project, SUSE Labs ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: HW mix 2005-04-18 10:06 ` Jaroslav Kysela @ 2005-04-19 6:06 ` Glenn Maynard 2005-04-19 8:14 ` Takashi Iwai 0 siblings, 1 reply; 5+ messages in thread From: Glenn Maynard @ 2005-04-19 6:06 UTC (permalink / raw) To: alsa-devel On Mon, Apr 18, 2005 at 12:06:54PM +0200, Jaroslav Kysela wrote: > On Mon, 18 Apr 2005, Clemens Ladisch wrote: > > > Dino wrote: > > > i want to mix some pcm streams using hardware (where possible). One process > > > with some thread witch want to play with one device (hw:0,0). Actually i simply > > > open the device as it can (32 at max for me) with snd_pcm_open() and hw:0,0 as > > > the device. It's seems to work but i don't know if it's the rigth way. > > > > "hw:0,0" will fail if another program has already opened it. > > Use "hw:0" which instructs ALSA to open the first available subdevice. > > Nope, hw:0,0 is correct (CARD,DEVICE). You meant probably hw:0,0,0 > (CARD,DEVICE,SUBDEVICE). Is there anything wrong with using "hw:0" instead of "hw:0,0", or are they equivalent? It's what I've always used, without issue. -- Glenn Maynard ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: HW mix 2005-04-19 6:06 ` Glenn Maynard @ 2005-04-19 8:14 ` Takashi Iwai 0 siblings, 0 replies; 5+ messages in thread From: Takashi Iwai @ 2005-04-19 8:14 UTC (permalink / raw) To: Glenn Maynard; +Cc: alsa-devel At Tue, 19 Apr 2005 02:06:47 -0400, Glenn Maynard wrote: > > On Mon, Apr 18, 2005 at 12:06:54PM +0200, Jaroslav Kysela wrote: > > On Mon, 18 Apr 2005, Clemens Ladisch wrote: > > > > > Dino wrote: > > > > i want to mix some pcm streams using hardware (where possible). One process > > > > with some thread witch want to play with one device (hw:0,0). Actually i simply > > > > open the device as it can (32 at max for me) with snd_pcm_open() and hw:0,0 as > > > > the device. It's seems to work but i don't know if it's the rigth way. > > > > > > "hw:0,0" will fail if another program has already opened it. > > > Use "hw:0" which instructs ALSA to open the first available subdevice. > > > > Nope, hw:0,0 is correct (CARD,DEVICE). You meant probably hw:0,0,0 > > (CARD,DEVICE,SUBDEVICE). > > Is there anything wrong with using "hw:0" instead of "hw:0,0", or are they > equivalent? It's what I've always used, without issue. "hw:0" is equal with "hw:0,0", but not with "hw:0,0,0". The default subdevice argument is -1, i.e. "hw:0,0,-1". The -1 means the auto-allocation as described above. When you pass 0 explicitly there, only the substream 0 is opened, and failed if it's already occupied. Takashi ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-04-19 8:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E1DNSGJ-00024N-Di@externalmx-1.sourceforge.net>
2005-04-18 9:46 ` HW mix Dino
2005-04-18 9:57 ` Clemens Ladisch
2005-04-18 10:06 ` Jaroslav Kysela
2005-04-19 6:06 ` Glenn Maynard
2005-04-19 8:14 ` Takashi Iwai
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.