summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/OpenALStream.cpp
diff options
context:
space:
mode:
authorSam Belliveau <sam.belliveau@gmail.com>2025-03-02 20:19:20 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2025-03-14 01:22:35 -0500
commitf09ba10daae4c44fc9404aa2cc48076f6edec9a4 (patch)
tree7395da269bfc52f61e412c62c6009f30a5d414dd /Source/Core/AudioCommon/OpenALStream.cpp
parente82f03b825ed4ec35539d93512877cdd2a02294b (diff)
AudioCommon: Added Granular Synthesis
Diffstat (limited to 'Source/Core/AudioCommon/OpenALStream.cpp')
-rw-r--r--Source/Core/AudioCommon/OpenALStream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp
index cdd44501ca..31ae9b047e 100644
--- a/Source/Core/AudioCommon/OpenALStream.cpp
+++ b/Source/Core/AudioCommon/OpenALStream.cpp
@@ -293,7 +293,7 @@ void OpenALStream::SoundLoop()
if (use_surround)
{
std::array<float, OAL_MAX_FRAMES * SURROUND_CHANNELS> dpl2;
- u32 rendered_frames = m_mixer->MixSurround(dpl2.data(), min_frames);
+ u32 rendered_frames = static_cast<u32>(m_mixer->MixSurround(dpl2.data(), min_frames));
if (rendered_frames < min_frames)
continue;
@@ -351,7 +351,7 @@ void OpenALStream::SoundLoop()
}
else
{
- u32 rendered_frames = m_mixer->Mix(m_realtime_buffer.data(), min_frames);
+ u32 rendered_frames = static_cast<u32>(m_mixer->Mix(m_realtime_buffer.data(), min_frames));
if (!rendered_frames)
continue;