mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
AudioStream: Fix assertion failure in debug builds
This commit is contained in:
parent
cc582912b6
commit
51babf4009
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue