public void Play(int index = 0) { _current = _songs[index]; _reader = new AudioFileReader(_current.FullPath(_basePath)); _player.Init(_reader); _player.Play(); SongPlaying?.Invoke(this, new EventArgs()); }
/// <summary> /// Plays the first song in the list, then moves to the next /// </summary> public void Play(int index = 0) { _player.Stop(); Current = this[index]; _reader?.Dispose(); _reader = new Mp3FileReader(Path.Combine(_basePath, Current.Path)); _player.Init(_reader); _player.Play(); SongPlaying?.Invoke(Current, new EventArgs()); }