OpenRA.Platforms.Default.OpenAlSoundEngine.StopAllSounds C# (CSharp) Method

StopAllSounds() public method

public StopAllSounds ( ) : void
return void
        public void StopAllSounds()
        {
            foreach (var key in sourcePool.Keys)
            {
                int state;
                AL10.alGetSourcei(key, AL10.AL_SOURCE_STATE, out state);
                if (state == AL10.AL_PLAYING || state == AL10.AL_PAUSED)
                    AL10.alSourceStop(key);
            }
        }