From: Stefan Schoenleitner <dev.c0debabe@gmail.com>
To: Colin Guthrie <gmane@colin.guthr.ie>
Cc: alsa-devel@alsa-project.org
Subject: Re: ALSA application programming: route audio from one PCM to another
Date: Wed, 14 Apr 2010 10:44:50 +0200 [thread overview]
Message-ID: <4BC58082.6090508@gmail.com> (raw)
In-Reply-To: <hq25p7$8kd$1@dough.gmane.org>
Colin Guthrie wrote:
> 'Twas brillig, and Stefan Schoenleitner at 13/04/10 16:23 did gyre and
> gimble:
>> Hi,
>>
>> I finally managed to write an ALSA I/O plugin that does what I want.
>> The plugin supports both playback and capture.
>>
>> Now I would like to write a simple audio application that takes audio
>> samples
>>
>> * from the microphone and plays it back on my plugin
>> and
>> * from the plugin (capture) and plays it back on the speakers
>>
>
> This sounds like something that would be more appropriate for jack
> http://jackaudio.org/
Thanks for your response, that really sounds like a job for JACK.
However, due to the nature of jack it seems that running the jack-daemon
is always necessary.
As my code is supposed to work on a very small scale embedded target, I
would prefer to have a small stand-alone application that does not
require a running jack-daemon.
* Do you know if it is possible to use the jack functionality without
having to run the jack-daemon ?
>> Hence as long as the application is running, it should do the above.
>>
>> * Is there a special ALSA way to route audio from one PCM to another ?
>>
>> * If not, I suppose it would just work if I open the plugin PCM and the
>> hw PCM at the same time and copy audio frames between them ?
>
> Dealing with this can be quite complex, especially if the pcms are
> clocked of different sources, you have to deal with a degree of
> resampling to ensure that clock skew doesn't get out of control.
Both PCMs are on the same machine, hence they should be clocked from the
same source as well ?
cheers,
stefan
next prev parent reply other threads:[~2010-04-14 8:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-13 15:23 ALSA application programming: route audio from one PCM to another Stefan Schoenleitner
2010-04-13 16:23 ` Colin Guthrie
2010-04-14 8:44 ` Stefan Schoenleitner [this message]
2010-04-14 9:00 ` Colin Guthrie
2010-04-14 9:36 ` Stefan Schoenleitner
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=4BC58082.6090508@gmail.com \
--to=dev.c0debabe@gmail.com \
--cc=alsa-devel@alsa-project.org \
--cc=gmane@colin.guthr.ie \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).