Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xujialiang opened this issue Feb 6, 2022 · 2 comments
Open

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

xujialiang opened this issue Feb 6, 2022 · 2 comments

Comments

@xujialiang
Copy link

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?

@timothyjward
Copy link
Collaborator

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.

@xujialiang
Copy link
Author

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~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants