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