Linux command
alsaloop 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Loop
alsaloop -C [hw:0,0] -P [hw:1,0]
Example
alsaloop -C [hw:0,0] -P [hw:1,0] -r [48000]
Example
alsaloop -C [hw:0,0] -P [hw:1,0] -f [S16_LE]
Example
alsaloop -C [hw:0,0] -P [hw:1,0] -d
说明
alsaloop creates a loopback between an ALSA capture device and playback device. It reads audio from one device and writes it to another in real-time, useful for routing audio between different hardware interfaces. The tool handles buffer management, sample rate conversion if needed, and attempts to maintain synchronization between devices.
参数
- -C _device_
- Capture (input) device
- -P _device_
- Playback (output) device
- -r _rate_
- Sample rate in Hz
- -f _format_
- Sample format (S16_LE, S24_LE, S32_LE, etc.)
- -c _channels_
- Number of channels
- -d, --daemonize
- Run as daemon
- -s _seconds_
- Process time limit
- -t _ms_
- Loop latency in milliseconds
- --sync _mode_
- Sync mode: none, simple, captshift, playshift
FAQ
What is the alsaloop command used for?
alsaloop creates a loopback between an ALSA capture device and playback device. It reads audio from one device and writes it to another in real-time, useful for routing audio between different hardware interfaces. The tool handles buffer management, sample rate conversion if needed, and attempts to maintain synchronization between devices.
How do I run a basic alsaloop example?
Run `alsaloop -C [hw:0,0] -P [hw:1,0]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -C _device_ do in alsaloop?
Capture (input) device