From: Fons Adriaensen <fons.adriaensen@skynet.be>
To: Alsa Developres <alsa-devel@lists.sourceforge.net>
Subject: Demux plugin
Date: Mon, 30 Oct 2006 23:45:11 +0100 [thread overview]
Message-ID: <20061030224510.GA9645@linux-1.site> (raw)
Hello all,
Is it possible to create a plugin for alsa-lib that would
do the following:
- I have an ALSA-supported sound card with an SPDIF input
that provides 2 capture channels at 96 kHz.
- These two signals are actually 4 channels at 48 kHz,
multiplexed into two in order to trick a 2-ch hardware
digital recorder to accept the signal.
- The plugin is configured to use hw:N as a slave, and
presents to the user a new device with 4 channels at
48 kHz, demultiplexed from its two inputs.
In other words, the plugin has to 'open' the slave with
modified parameters - the sample rate and period size
requested by the user are doubled and the number of
channels is halved - and to perform the conversion.
There is no resampling involved, just moving samples
from input buffers to output buffers. The preferred
interface to the plugin would be mmapped.
Is this possible, and if yes how ?
I've been looking at
http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_external_plugins.html
but that hasn't made me any wiser...
If it can't be a plugin, what are the other options ?
The reason I will need this is here:
http://www.core-sound.com/4Mic/2.php
TIA,
--
FA
Lascia la spina, cogli la rosa.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
reply other threads:[~2006-10-30 22:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20061030224510.GA9645@linux-1.site \
--to=fons.adriaensen@skynet.be \
--cc=alsa-devel@lists.sourceforge.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.