This project has moved and is read-only. For the latest updates, please go here.

I desperately needed help..NVorbis.VorbisReader

Nov 25, 2013 at 8:20 AM
Edited Nov 26, 2013 at 7:20 AM
I desperately needed help.
NVorbis.VorbisReader sample is missing.
You will need ogg playback until.
Can you raise?

You need help.
This part requires the next sample.

while ((count = vorbis.ReadSamples(buffer, 0, buffer.Length)) > 0)

Dec 2, 2013 at 2:02 AM
Sorry for taking so long... Was offline for a much needed holiday. :)

Please see the documentation for an example... vorbis.ReadSamples(...) returns the number of individual samples written to buffer (i.e., if count = 1000 and Channels = 2, it actually wrote 500 stereo samples). Do whatever processing you need (including playback if that is your requirement) inside the while loop.

There are other ways to do it, but this is the simplest to understand.