From 51babf4009ed483d2303943620e30e6c8dfd1565 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 1 Feb 2021 00:50:27 +1000 Subject: [PATCH] AudioStream: Fix assertion failure in debug builds --- src/common/audio_stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/audio_stream.cpp b/src/common/audio_stream.cpp index e06d93cae..5af2a425d 100644 --- a/src/common/audio_stream.cpp +++ b/src/common/audio_stream.cpp @@ -263,7 +263,7 @@ void AudioStream::ReadFrames(SampleType* samples, u32 num_frames, bool apply_vol void AudioStream::EnsureBuffer(u32 size) { - DebugAssert(size <= m_buffer_size); + DebugAssert(size <= (m_buffer_size * m_channels)); if (GetBufferSpace() >= size) return;