C# resample audio from 8khz to 44.1/48khz

前端 未结 3 1678
时光说笑
时光说笑 2021-01-22 17:58

I have encountered a bug in DirectShow .NET where I create a secondary buffer with a sample rate of 8khz, and upon playback, the sound plays back at approx. 8.1khz instead.

3条回答
  •  遥遥无期
    2021-01-22 18:08

    For Alvas.Audio see code below

    byte[] data48khz = AudioCompressionManager.Convert(format8khz, format48khz, data8khz, false);

提交回复
热议问题