Aidan Gauland wrote:
> Hello (again),
> 
>  Is there a way to capture the audio output from a running program on
> Linux?  I've heard of "jack", but the program I want to capture the
> sound from, doesn't use that.  Maybe there's some ALSA plug-in I could use?

Probably.

Do you want to hear the sound at the same time, or capture to file
instead of outputting data?

What is the program you want to capture output from?
Does it allow you to specify the alsa output device to use?

For reference there are two alsa wikis:

Official http://alsa-project.org/
Unofficial http://alsa.opensrc.org/

currently the unofficial one has more info about user setups.


1) File plugin (+ tee device)
http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html
http://www.alsa-project.org/alsa-doc/alsa-lib/pcm.html

http://www.volkerschatz.com/noise/alsa.htmlaplay
-Dtee:\'plughw:0,0\',/tmp/alsatee.out,raw xy.wav


2) Use loopback device
http://www.alsa-project.org/main/index.php/Matrix:Module-aloop

3) Use a sound server like jack or pulseaudio. Both have alsa input
plugins that allow an app to send audio to the server, where it can be
distributed to multiple places (recording, speakers etc)

Checking out whether the setup works I'd recommend using ALSAs aplay and
arecord applications to start with.

I won't go into more detail until I see answers to the questions above.

cheers

Eliot

Reply via email to