public void StopAllInstances() { lock (instanceMutationLock) { foreach (int id in SoundInstanceIds) { AudioModule.StopSoundInstance(id); } SoundInstanceIds.Clear(); } }