C# “;遇到无效模式:9”;使用NSpeex解码时
这是我的密码:C# “;遇到无效模式:9”;使用NSpeex解码时,c#,.net,naudio,decoding,nspeex,C#,.net,Naudio,Decoding,Nspeex,这是我的密码: 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,
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”错误
如何修复它?我做错什么了吗?你可以试试
这里有C语言的例子#