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

Separate (background) music & sound effect #343

Open
nighca opened this issue Oct 8, 2024 · 0 comments
Open

Separate (background) music & sound effect #343

nighca opened this issue Oct 8, 2024 · 0 comments

Comments

@nighca
Copy link
Collaborator

nighca commented Oct 8, 2024

In SPX and Scratch, "sound" usually refers to two scenarios:

  • Sound effects
  • Background music

Separating music from sound effects offers several advantages:

  • Music is typically played in the background for extended periods, often using loop, pause, and resume features.
  • Sound effects are usually triggered briefly to signify game events, without looping or pausing.

By distinguishing these two sound categories, we can:

  • Enable background music configuration for each scene.
  • Simplify sound control APIs, such as:
    • Non-blocking API only for music
    • Blocking API only for sound effects
    • Removing loop, pause, and resume options for sound effects
  • Allow separate volume control for music and sound effects.
@nighca nighca changed the title Separate (background) music & sound effect [WIP] Separate (background) music & sound effect Oct 8, 2024
@nighca nighca changed the title [WIP] Separate (background) music & sound effect Separate (background) music & sound effect Oct 8, 2024
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

1 participant