private void Init()
 {
     AudioReader            = new AudioFileReader(FilePath);
     SampleProvider         = new NotifyingSampleProvider(AudioReader);
     SampleCount            = AudioReader.GetSampleCount();
     SampleProvider.Sample += OnSample;
 }
 public void Reset()
 {
     AudioReader            = new AudioFileReader(FilePath);
     SampleProvider         = new NotifyingSampleProvider(AudioReader);
     Samples                = new Queue <float>();
     SampleCount            = AudioReader.GetSampleCount();
     SampleProvider.Sample += OnSample;
     CurrentGap             = 0;
     SampleProcessed        = 0;
 }