Exemple #1
0
 private static void ExportWav(IAudio audio, Stream output, IProgressReport writingProgress = null)
 {
     using (Stream input = audio.GetPCMStream())
     {
         WAVFile.WAVFromPCM(input, output, (short)audio.GetChannels(), audio.GetSamplesPerSecond(), audio.GetBits(), (int)audio.GetSamplesCount(), writingProgress);
     }
 }