[Possible Feature] Allow All Previous Tracks to Stop Playing When a New One is Queued #97
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey,
First of all, thank you very much for this software, it's by far the best & simple free soundboard out there. I've been using it quite a bit on my streams.
A problem I've had is where I want to only ever play one track at a time, so the previous ones would stop playing.
AmplitudeSoundboarddoes currently let you stop the same track if triggered twice, but you can still queue up a longer audio that would play regardless when a separate track is queued. My use-case required stopping all of them before you queue up the new track.This is the initial PR, I've basically just replicated the toggle audio feature and added a check to the
Playfunction that will reset the queue if the relevant config is set.If this desirable, let me know what text you would prefer on the localisation.