Example #1
0
 private void Play(int samplerate)
 {
     byte[] wave = WaveConv.ToWave(samples.ToPCM(), samplerate).Save();
     spPlayer.Stop();
     spPlayer.Stream = new MemoryStream(wave);
     spPlayer.Play();
 }
Example #2
0
 private void ExportWave(int samplerate)
 {
     byte[] wave = WaveConv.ToWave(samples.ToPCM(), samplerate).Save();
     FileUtil.SaveFile(wave, FileFilters.Wave, FileFilters.Any);
 }