this post was submitted on 19 Aug 2026
6 points (100.0% liked)
Gamedev
527 readers
10 users here now
https://lemmy.world/c/Gamedev A Lemmy community to share game development news and info!
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
In my humble experience what solved (considering the engine), I've a singleton for the audio, I call from this to request any SFX, it will make all the spawning of the objects that I need for the audio, clean up and such. Additionally, it allows me to add some variation on the sound (pitch, tempo, speed, volume...), so I can be as precise I need for some SFX, while leave randomness for others.