asound.conf pcm.tee, anyone know how to use it
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 4 lines
Please someone correct me if I am mistaken. Can the pcm.tee option in alsa.co n
(/usr/share/alsa/alsa.conf) be setup so that the output of a program that uses alsa natively be monitored by connecting to this "tee" ??
well, the "tee" type allows redirection but its only sane to do it to a file inode that allows (almost) endless non-blocking read/write. there are almost no such devices in POSIX unless its a regular file. so you can't really use it for loopback. its intended for instances where you want the output to go to an audio interface *and* a file.
there is a way to do "loopback" in ALSA these days, but "tee" is not it. someone will fill in the blanks (or better yet, write/complete a HOWTO).
--p
<obJack>
of course, JACK can do loopback, multiplexing, app-2-app and many other forms of data routing without any effort on the part of your application ...
</obJack>
:)
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected]
Quoted 8 lines · Dave Andruczyk
Please someone correct me if I am mistaken. Can the pcm.tee option in alsa.con (
/usr/share/alsa/alsa.conf) be setup so that the output of a program that uses alsa natively be monitored by connecting to this "tee" ??My primary app (eXtace) needs this sort of functionality, The old ALSA 0.5.x called it loopback, can this do the same? Can anyone offer tips for someone who really doesn't understand the asound.conf syntax to possibly get it to work?
aplay -D tee:'plughw:0',a.raw ~/audio/audio_10.wav
All samples should go to 'a.raw' file, but as Paul mentioned, if you use a pipe, the audio process can be blocked (possible underruns).
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project http://www.alsa-project.org
SuSE Linux http://www.suse.com
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [email protected]