Audio: Add sound stream test

This commit is contained in:
Lynix
2022-03-19 12:36:55 +01:00
parent 45f0825a6e
commit dc24ff33a4
2 changed files with 63 additions and 1 deletions

View File

@@ -192,7 +192,7 @@ namespace Nz
m_format = *formatOpt;
m_duration = static_cast<UInt32>(1000ULL * m_decoder.totalPCMFrameCount / (m_decoder.sampleRate * m_decoder.channels));
m_duration = static_cast<UInt32>(1000ULL * m_decoder.totalPCMFrameCount / m_decoder.sampleRate);
m_sampleCount = m_decoder.totalPCMFrameCount * m_decoder.channels;
m_sampleRate = m_decoder.sampleRate;