[SOLVED] Error in OOSStreamRead()

shenjoku

22-12-2013 21:50:22

I noticed a pretty bad error in OOSStreamRead() when trying to figure out the sound stuttering issues I've been having. Where it's calling:
dataStream->read(ptr, size);

It should be:
dataStream->read(ptr, size * nmemb);

I'm not entirely sure what the side effect of this is, but most of the time (from the debugging I've done) the ogg library is asking for a size of 1 and nmemb of 2048. At the very least it's making the sound manager extremely inefficient since it's reading data from the stream one byte at a time.

stickymango

06-01-2014 17:23:47

Changed, let me know if this causes any issues.