Fixed playback of non-stereo Opus files

This commit is contained in:
Chris Moeller 2015-12-22 00:39:00 -08:00
parent 0f13825a04
commit 5bd098fa88

View file

@ -104,7 +104,7 @@ opus_int64 sourceTell(void *_stream)
do {
lastSection = currentSection;
numread = op_read_float_stereo( opusRef, &((float *)buf)[total], size - total);
numread = op_read_float( opusRef, &((float *)buf)[total], size - total, NULL );
currentSection = op_current_link( opusRef );
if (numread > 0) {
total += numread * channels;