mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +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)
|
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue