BitOrchestra.Sound.Play C# (CSharp) Method

Play() public method

Tries playing the sound from the given evaluator stream.
public Play ( WaveStream Stream ) : bool
Stream NAudio.Wave.WaveStream
return bool
        public bool Play(WaveStream Stream)
        {
            try
            {
                if (this._Player == null)
                {
                    if (_Create(out this._Player))
                    {
                        this._Player.Init(this._Stream = Stream);
                        this._Player.Play();
                        return true;
                    }
                }
                return false;
            }
            catch
            {
                this._Player = null;
                this._Stream = null;
                return false;
            }
        }