Skip to content

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

Open

Description

@TonalidadeHidrica

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.

Activity

  1. 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?[/+] on Mar 25, 2021
  2. mitchmindtree commented on Aug 4, 2021

    @mitchmindtree
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions