37.3 Audio Duplex Mixing

Duplex mixing will allow multiple sounds to be sent to the audio card at a time. Copy /usr/share/doc/libasound2/examples/asound.conf_dmix to /etc/asound and restart alsa:

  $ wajig restart alsa

Then multiple command line mplayers can all play at the same time. Be sure to configure xmms and beep-media-player to use the ALSA output device.

When running quodlibet there is crackling in the audio, which is not there when the dmix is removed! Running mplayer and beep-media-player are just fine.

Further details on setting up dmix is available from http://alsa.opensrc.org/index.php?page=DmixPlugin.



Your donation will support ongoing availability and give you access to the PDF version of the book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2021 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0.