DeckThemes / SDH-AudioLoader

Replaces and adds Steam Deck game UI sounds
Other
18 stars 6 forks source link

Add support for starting sounds for music packs #11

Open EMERALD0874 opened 2 years ago

EMERALD0874 commented 2 years ago

This can be accomplished by playing a starting sound file once and playing the looping sound file "infinitely" once the starting sound file has been completed. I forget if there is a way for us to listen for such an event, but it would be good for certain situations (ex. the Wii menu has a short jingle when opened but it may not be optimal for this to play as a modal open sound effect).

beebls commented 1 year ago

Adding help wanted label as I'd appreciate suggestions on how to do this.

Currently my only train of thought is to play the starting sound, set a timeout for the length of the audio clip, and then play the infinetely looping song.

If there is a way to be notified when a sound ends that would simplify this hugely.