public AudioFormat ToAudioFormat () { return new AudioFormat (bitsPerSample, channels, samplesPerSecond, waveFormat); } }