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:
It should be:
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.
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.