public WaveFormat ToWaveFormat()
 {
     return(new WaveFormat(SampleRate, BitsPerSample, Channels, MediaTypes.EncodingFromMediaType(SubFormat)));
 }