ppb / pursuedpybear

A python game engine.
https://ppb.dev/
Artistic License 2.0
258 stars 98 forks source link

Pause/clear sounds on scene change #345

Open AstraLuma opened 5 years ago

AstraLuma commented 5 years ago

Currently, sound effects will "bleed" from one scene to the next.

I'm thinking:

pathunstrom commented 5 years ago

The first sounds perfect.

The second sounds challenging, and I honestly think I'd take just killing sound effects, and restarting background music. (As an alternative, clearly whatever works out.)

AstraLuma commented 5 years ago

I'd have to check the pygame sound APIs again, but the real problem would be the number of sound channels taken up. (Which we fully control and could just scale up/down depending on the size of the scene stack.)