From: James Courtier-Dutton <James@superbug.co.uk>
To: Bob Ingraham <bobi@netshel.net>
Cc: Clemens Ladisch <clemens@ladisch.de>, alsa-devel@lists.sourceforge.net
Subject: Re: Converting OSS ioctl's to ALSA API
Date: Wed, 07 Sep 2005 23:29:39 +0100 [thread overview]
Message-ID: <431F69D3.1060705@superbug.co.uk> (raw)
In-Reply-To: <52491.12.110.19.97.1126112946.squirrel@12.110.19.97>
Bob Ingraham wrote:
>Thank-you so much for ioctl mapping!
>
>May I ask one other architectural question?
>
>This video-conferencing app expected to use two half-duplex devices for
>simultaneous record-playback:
>
>/dev/dsp0 and /dev/dsp1 - these were expected to be configured as the
>separate playback and record channels of a single soundcard.
>
>However, on all of our target platforms (all running
>SuSE/Novell-Linux-Desktop,) there only appears to be a single, full-duplex
>device to use (plugwh:0,0) for both record and playback.
>
>So the (three-part) question is:
>
>1. Do I:
>
> (a) Try to re-write this app to use full-duplex? or,
>
> (b) Can I re-configure ALSA to split the default device (plughw:0,0)
>into two separate, half-duplex sub-devices (one for playback and one for
>record?
>
>
>2. Which approach makes more sense (i.e., more stable, reliable, etc.)?
>
>
>3. If 1a is the way to go, is there a tutorial or sample-doc on how to
>properly program full-duplex (simultaneous record & playback) operation
>under ALSA?
>
>
>Thanks,
>Bob
>
>
ALSA provides an abstraction layer.
If you open plughw:0,0 for only playback, and then again for only
capture it should work.
So, although the device name looks the same, device names for playback
and capture are in fact in a different name space.
alsa-lib does all the difficult work for you.
Another alternative could be to use jackd. It is ideal for low latency
applications, and VoIP is certainly ideal for that.
James
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
next prev parent reply other threads:[~2005-09-07 22:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-06 0:49 Converting OSS ioctl's to ALSA API Bob Ingraham
2005-09-06 7:53 ` Clemens Ladisch
2005-09-07 17:09 ` Bob Ingraham
2005-09-07 22:29 ` James Courtier-Dutton [this message]
2005-09-08 12:54 ` Clemens Ladisch
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=431F69D3.1060705@superbug.co.uk \
--to=james@superbug.co.uk \
--cc=alsa-devel@lists.sourceforge.net \
--cc=bobi@netshel.net \
--cc=clemens@ladisch.de \
/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.