0

Here is my code:

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);
}

When I call this method:

byte[] decodedBuffer = this.Decode(File.ReadAllBytes(@"C:\Users\Admin\Desktop\123.ogg"));

I get “Invalid mode encountered: 9” error.

How to fix it? Did i do anything wrong?

Strong84
  • 1,869
  • 2
  • 19
  • 24

1 Answers1

0

You can try https://sites.google.com/site/cobnut3d/

There are examples for C #

Easy3D_47
  • 1
  • 1