From 5bd098fa887b9eb1f86cd93c7cbfd7c85d9fae02 Mon Sep 17 00:00:00 2001 From: Chris Moeller Date: Tue, 22 Dec 2015 00:39:00 -0800 Subject: [PATCH] Fixed playback of non-stereo Opus files --- Plugins/Opus/Opus/OpusDecoder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/Opus/Opus/OpusDecoder.m b/Plugins/Opus/Opus/OpusDecoder.m index e0f6d91ca..1456dd1a3 100644 --- a/Plugins/Opus/Opus/OpusDecoder.m +++ b/Plugins/Opus/Opus/OpusDecoder.m @@ -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;