Fixed playback of non-stereo Opus files
parent
0f13825a04
commit
5bd098fa88
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue