On Wed, 28 Jan 2004 07:42 pm, Mike Rawes wrote:
> Are there tools to copy audio to a file as it
goes through ALSA to the
> soundcard? I'm basically looking for something like VSound, but for
> everything, not just apps that can be coaxed to use OSS.
Try putting this in ~/.asoundrc:
pcm.fileout {
type file
slave.pcm "hw:0,0"
file alsaout.raw
}
..then aplay -D fileout foo.wav, will create a file called alsaout.raw
... and, how would one go about doing this for pmidi, an
ALSA app that does not support the -D option ?
And is it safe to presume this file will get created in
the current directory ?
Quite how you determine the format of the .raw file is
beyond me -
anybody?!
Good point, anyone know of a tool that simply determines
the filetype ?
--markc