这是我的代码:
public byte[] Decode(byte[] encodedData)
{
short[] decodedFrame = new short[160]; // should be the same number of samples as on the capturing side
int decoderBytes = decoder.Decode(encodedData, 0, encodedData.Length, decodedFrame, 0, false);
}
当我称这种方法时:
byte[] decodedBuffer = this.Decode(File.ReadAllBytes(@"C:\Users\Admin\Desktop\123.ogg"));
我收到“遇到无效模式:9 ”错误。
如何解决?我做错了什么?