summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-17 18:28:19 +0200
committerGitHub <noreply@github.com>2018-09-17 18:28:19 +0200
commit692e7cee4f333e2ebd58a53cb369fa7fc9457044 (patch)
tree123975327a77f93adecee88a7d686e384b8ee100 /src
parentMerge pull request #1316 from lioncash/shadow (diff)
parentaudio_core/time_stretch: Silence truncation warnings in Process() (diff)
downloadyuzu-692e7cee4f333e2ebd58a53cb369fa7fc9457044.tar
yuzu-692e7cee4f333e2ebd58a53cb369fa7fc9457044.tar.gz
yuzu-692e7cee4f333e2ebd58a53cb369fa7fc9457044.tar.bz2
yuzu-692e7cee4f333e2ebd58a53cb369fa7fc9457044.tar.lz
yuzu-692e7cee4f333e2ebd58a53cb369fa7fc9457044.tar.xz
yuzu-692e7cee4f333e2ebd58a53cb369fa7fc9457044.tar.zst
yuzu-692e7cee4f333e2ebd58a53cb369fa7fc9457044.zip
Diffstat (limited to 'src')
-rw-r--r--src/audio_core/time_stretch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/time_stretch.cpp b/src/audio_core/time_stretch.cpp
index 5da35e74e..fc14151da 100644
--- a/src/audio_core/time_stretch.cpp
+++ b/src/audio_core/time_stretch.cpp
@@ -62,8 +62,8 @@ std::size_t TimeStretcher::Process(const s16* in, std::size_t num_in, s16* out,
LOG_DEBUG(Audio, "{:5}/{:5} ratio:{:0.6f} backlog:{:0.6f}", num_in, num_out, m_stretch_ratio,
backlog_fullness);
- m_sound_touch.putSamples(in, num_in);
- return m_sound_touch.receiveSamples(out, num_out);
+ m_sound_touch.putSamples(in, static_cast<u32>(num_in));
+ return m_sound_touch.receiveSamples(out, static_cast<u32>(num_out));
}
} // namespace AudioCore