OpenBve.Sounds.IsStopped C# (CSharp) Method

IsStopped() static private method

Checks whether the specified sound is stopped or supposed to be stopped.
static private IsStopped ( SoundSource source ) : bool
source SoundSource The sound source, or a null reference.
return bool
		internal static bool IsStopped(SoundSource source) {
			if (source != null) {
				if (source.State == SoundSourceState.StopPending | source.State == SoundSourceState.Stopped) {
					return true;
				}
			}
			return false;
		}