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

[Question] Is there a way to dynamically add a signal to mix? #157

Open
TonalidadeHidrica opened this issue Mar 25, 2021 · 1 comment
Open

Comments

@TonalidadeHidrica
Copy link

I want to play a music and some sound effects. Can I dynamically add another Signal to mix while playing? As I see the Signal API, it seems to be designed for static mixing.

@TonalidadeHidrica TonalidadeHidrica changed the title Is there a way to dynamically add a signal to mix? [Question] Is there a way to dynamically add a signal to mix? Mar 25, 2021
@mitchmindtree
Copy link
Member

@TonalidadeHidrica that's right, using the Signal API it might be easier to reconstruct the full signal when you want to add or remove Signals dynamically. Alternatively, you could implement Signal for your own "signal collection" type that allows for adding/removing signals.

For dynamic composition of audio graphs, you might want to consider the dasp_graph crate - you can find a section in the docs discussing the difference to the dasp Signal API here.

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