I have 2 soundcards, and I want the sound that is played to play on both. I know how to do this via the GUI (Play sound through two or more outputs/devices), but my case is different:
- I don't use pulseaudio, it's alsa directly
- I want to use the commandline
Any ideas? Thx!
You could define a new device in your
~/.asoundrc
or in/etc/asound.conf
:Then use the
both
device name:aplay -D both something.wav
.If the clock speeds of these devices do not exactly match, the
multi
plugin will eventually over-/underrun one of the device's buffers (PulseAudio would be able to resample on the fly).