From: "Nick French" <nick@greensignal.com>
To: Paul Davis <pbd@op.net>
Cc: alsa-devel@lists.sourceforge.net
Subject: Re: Multiple PCM files
Date: Tue, 30 Jul 2002 13:24:21 +0100 [thread overview]
Message-ID: <103b01c237c4$08e15ce0$360110ac@dillon> (raw)
So does JACKs allow two separate applications to stream PCM audio at the
same time to the same device and if so will it then overlay them? If it will
why would two threads each registering with JACKs not work.
Thanks again
Nick
----- Original Message -----
From: "Paul Davis" <pbd@op.net>
To: "Nick French" <nick@greensignal.com>
Cc: <alsa-devel@lists.sourceforge.net>
Sent: Tuesday, July 30, 2002 12:29 PM
Subject: Re: [Alsa-devel] Multiple PCM files
> >Ok set the option ( you guessed it Outlook Express ) to text only. Sorry
> >don't have a go at me as it is the default setting I believe.
> >
> >Option 1 or 2 would be what I am looking at. What I have is a program
with
> >multiple threads needing to play PCM streams to the same device.
>
> there are some hardware interfaces that support "multi-open", meaning
> that several calls to snd_pcm_open() can be made to the same named
> device (e.g. "plughw:0,0"). these interfaces have a hardware mixer
> that mixes all the streams together before delivering them to the
> connectors on the back. on these devices, each thread could open the
> device, and do its own writing.
>
> there are other interfaces that have more than one PCM output
> device. for example, some have "front" and "back" devices, or "analog"
> and "spdif" devices. these are distinct PCM devices that can be
> accessed independently from each other. this is basically what you
> were using when you used /dev/dsp0 and /dev/dsp1 (assuming you had
> only one audio interface installed).
>
> however, you cannot rely on such interfaces in general - there are
> many that do not support either of these functions, and your software
> will not work if you were to use it on such hardware. this might not
> matter to you if your software is only for your own use.
>
> so, instead you need to provide your own internal mixer. your own
> threads write into buffers, and then a single thread mixes it together
> and delivers it via snd_pcm_write or its cousins and uncles.
>
> --p
>
> ps. personally, as everyone here knows, i would recommend that you use
> JACK (jackit.sf.net) and forget about the ALSA layer, but that's your
> choice. JACK doesn't make a design with multiple threads delivering
> the data any simpler, but it gets rid of all the ALSA device/hardware
> related stuff and replaces it with a very simple abstraction.
>
>
>
>
>
-------------------------------------------------------
This sf.net email is sponsored by: Dice - The leading online job board
for high-tech professionals. Search and apply for tech jobs today!
http://seeker.dice.com/seeker.epl?rel_code=31
next reply other threads:[~2002-07-30 12:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-30 12:24 Nick French [this message]
2002-07-30 13:18 ` Multiple PCM files Paul Davis
-- strict thread matches above, loose matches on Subject: below --
2002-07-31 20:58 Philipp Vollmer
2002-07-31 20:20 ` Nick French
2002-07-30 13:58 Nick French
2002-07-30 10:43 Nick French
2002-07-30 11:29 ` Paul Davis
2002-07-30 9:52 Nick French
2002-07-30 9:50 Nick French
2002-07-30 10:11 ` Paul Davis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='103b01c237c4$08e15ce0$360110ac@dillon' \
--to=nick@greensignal.com \
--cc=alsa-devel@lists.sourceforge.net \
--cc=pbd@op.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.