using (var wav = new WaveFileReader(path)) { var channels = wav.WaveFormat.Channels; var bitsPerSample = wav.WaveFormat.BitsPerSample; var sampleRate = wav.WaveFormat.SampleRate; var length = (int)(wav.Length / channels); var bitLength = bitsPerSample / 8; if (channels <= 1) { Console.WriteLine("Input file does not contain multiple channels."); return; } int bytesRead; var buffer = new byte[bitLen