Skip to content

Conversation

@matheusgomes28
Copy link

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. AmplitudeSoundboard does 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 Play function 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.

@dan0v
Copy link
Owner

dan0v commented Mar 17, 2025

Hi, thanks a lot for the kind words and the PR. A few things before this can be merged;

I would suggest re-framing this feature into two (or three) parts and moving it to be a per-soundclip option rather than a global one:
1. First, add an option to soundclips for jumping to the front of the queue, so that when the clip is triggered, it moves to the top of the queue, but does not play immediately.
2. Add a second option to stop other currently playing clips when this soundclip is triggered. (This will implicitly start the next soundclip from the queue, i.e. the one which got moved to the front of queue if option 1 was also enabled on the soundclip, or just whichever one was next in the queue if option 1 was not enabled).
3. (optional) If you really also want the tracks which were already queued to also be completely cleared instead of continuing after this one ends, this could be a third option on the soundclip ("Clear queue when played"), so that if all three options are active, (1) this track goes to the front of the queue, (2) the playing tracks are stopped, which causes the new clip to start playing immediately, (3) and the rest of the queue is wiped, so nothing plays after this.

Option 1 in particular would already be really useful, since a "Send to front of queue" option could also be added to the right click context menu of the Main Grid and the Sound Clip List.

Regarding translations

I have just been using machine translations for languages other than English, so please do the same and add any new language strings to all the other languages too when you add them in English.

One last thing to look out for is that when you add additional options to a window, you should clear your saved window sizes and check if the default window size is tall / wide enough to show all of the options. If not, please increase the window size as needed, so everything can be seen by default.

@matheusgomes28
Copy link
Author

@dan0v I'll come back to this in the weekend, thanks for the feedback 🙂

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

Successfully merging this pull request may close these issues.

2 participants