Ejemplo n.º 1
0
        public AudioPlayer()
        {
            wavePlayer = new WaveOut();

            wavePlayer.PlaybackStopped += (sender, e) =>
            {
                if (audioFileReader.Position == audioFileReader.Length)
                {
                    OnPlayerEnds?.Invoke(sender, e);
                }
            };
        }
        public AudioPlayer()
        {
            wavePlayer = new WaveOut();

            MarkedPoints    = new List <long>();
            SelectedRegions = new List <SelectedRegion>();

            wavePlayer.PlaybackStopped += (sender, e) =>
            {
                if (audioFileReader.Position == audioFileReader.Length)
                {
                    OnPlayerEnds?.Invoke(sender, e);
                }
            };
        }