After
wanting to capture audio from various application in Linux I recently
found my Debian Lenny EEE 701 to be without the snd-aloop.ko required
for alsa loop back.
So as a quick how-to....
Make sure the debian module
assistant's installed. If not...
aptitude
install module-assistant
m-a prepare
m-a update
see a soted list of modules...
m-a -t list |
grep -E '^[^ ].*\(' | cut -d " " -f 1 | sort
alsa-source is what we're after...
m-a a-i alsa-source
let it finish.
arecord -D hw:1,1 -f cd
noise.wav
once done
modprobe
snd-aloop
and we're done with that...
Then to capture said app, it's
easy to just set the default sound device to be the new loop back...
create .asoundrc in your home directory
it should contain something like
this...
pcm.!default {
type hw
card 1
device 0
}
we might need to restart alsa, I
can't remember but since we've loaded new modules it can't hurt.
Then simply start the application
up. Get it ready for making gwhat ever noise you're after capturing
then simply do something like....
arecord -D
hw:1,1 -f cd noise.wav
Start the app noise.
Ctr-C arecord when done.
Winner.
Handy commands for playback when default alsa card is set to
hw:1,1(loopback)...
mplayer -ao alsa:noblock:device=hw=0.0 file.wav
or
aplay -D hw=0,0 -f cd file.wav
etc...