Пример #1
0
 public void Play()
 {
     Stop();
     Init(_Wave);
     if (_mode == AudioTrackMode.Static)
     {
         if (_loop)
         {
             _player.SetLoopPoints(0, _frames, -1);
         }
     }
     else
     {
         Write();
         Device.StartTimer(_duration,
                           () => { Complete?.Invoke(this, EventArgs.Empty); return(!Disposed && _loop); });
     }
     _player.Play();
 }