SoundService:GetPlayingSounds()

User Story:

As a developer, I am unable to fetch a list of currently playing sounds like I am animations with humanoid::GetPlayingAnimationTracks.

Use Cases:

  • Debugging (e.g. stray sound playing somewhere)
  • Creating free models that seamlessly work with existing games
    • Cave system that applies an echo to any sounds played in the cave
    • Confusion effect which applies a FlangeSoundEffect to all sounds in the game
    • “Speed” sounds up with PitchShiftSoundEffect for a speedup ability
    • Adjust free model’s volume to match existing sounds’ PlaybackLoudness

A Solution:

SoundService::GetPlayingSounds, taking inspiration from Humanoid::GetPlayingAnimationTracks.

14 Likes