Volumio2 icon indicating copy to clipboard operation
Volumio2 copied to clipboard

Play Back Sound With [aplay] at the same time?

Open xujialiang opened this issue 3 years ago • 2 comments

When I am playing back musics, at the same time, I try to use play sound with sudo aplay -vv /usr/share/sounds/alsa/Front_Center.wav

will tell me

aplay: main:828: audio open error: Device or resource busy

how can I do?

xujialiang avatar Feb 06 '22 04:02 xujialiang

how can I do?

This requires either:

  1. A sound card with a hardware mixer
  2. A software mixer like dmix

Adding a software mixer can cause a serious drop in audio quality so Volumio doesn’t do it. You could create a custom Volumio plugin to add one, although the general recommendation would be not to do it.

timothyjward avatar Feb 06 '22 08:02 timothyjward

how can I do?

This requires either:

  1. A sound card with a hardware mixer
  2. A software mixer like dmix

Adding a software mixer can cause a serious drop in audio quality so Volumio doesn’t do it. You could create a custom Volumio plugin to add one, although the general recommendation would be not to do it.

Thanks, I want to write a plugin to support sound effect. My hardware do not support mix.
So I try to add software mixer by plugin, but got errors: dmix need to connect direct with hw type. The plugin will always auto create a empty type node. How to create a dmix type node that direct to hw type?

Thanks a lot~

xujialiang avatar Feb 07 '22 06:02 xujialiang