Exemple #1
0
        private void StartPlayback()
        {
            EventUtility.SafeFireEvent(NewBarStarted, this, new CurrentBarEventArgs(queuedWaveStream.CurrentPlayingIndex));

            wavePlayer = new WaveOut();

            queuedWaveStream.ContinuePlayback = true;

            wavePlayer.Init(queuedWaveStream);
            wavePlayer.Play();
        }
Exemple #2
0
 private void QueuedWaveStreamFinishedCurrentStream(object sender, EventArgs e)
 {
     if (!Repeat && queuedWaveStream.CurrentPlayingIndex == 1)
     {
         Stop();
     }
     else
     {
         EventUtility.SafeFireEvent(NewBarStarted, this,
                                    new CurrentBarEventArgs(queuedWaveStream.CurrentPlayingIndex));
     }
 }
Exemple #3
0
        private void LoadNextStream()
        {
            CurrentWavestream.Position = 0;

            if (CurrentPlayingIndex < streams.Count)
            {
                currentPlayingIndex++;
            }
            else
            {
                CurrentPlayingIndex = 1;
            }

            EventUtility.SafeFireEvent(FinishedCurrentStream, this);
        }