AudioStream: Fix assertion failure in debug builds

This commit is contained in:
Connor McLaughlin 2021-02-01 00:50:27 +10:00
parent cc582912b6
commit 51babf4009

View file

@ -263,7 +263,7 @@ void AudioStream::ReadFrames(SampleType* samples, u32 num_frames, bool apply_vol
void AudioStream::EnsureBuffer(u32 size) void AudioStream::EnsureBuffer(u32 size)
{ {
DebugAssert(size <= m_buffer_size); DebugAssert(size <= (m_buffer_size * m_channels));
if (GetBufferSpace() >= size) if (GetBufferSpace() >= size)
return; return;