Minor fixes

This commit is contained in:
SirLynix
2022-05-05 20:20:44 +02:00
parent 973b589b08
commit 81085508ec
5 changed files with 7 additions and 6 deletions

View File

@@ -159,7 +159,7 @@ namespace Nz
std::size_t processedBufferIndex = 0;
for (; processedBufferIndex < m_queuedBuffers.size(); ++processedBufferIndex)
{
UInt32 bufferFrameCount = m_queuedBuffers[processedBufferIndex]->GetSampleCount() / GetChannelCount(m_queuedBuffers[processedBufferIndex]->GetAudioFormat());
UInt32 bufferFrameCount = SafeCast<UInt32>(m_queuedBuffers[processedBufferIndex]->GetSampleCount() / GetChannelCount(m_queuedBuffers[processedBufferIndex]->GetAudioFormat()));
if (offset < bufferFrameCount)
break;