diff options
author | bunnei <bunneidev@gmail.com> | 2018-09-17 12:28:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-17 12:28:19 -0400 |
commit | 692e7cee4f333e2ebd58a53cb369fa7fc9457044 (patch) | |
tree | 123975327a77f93adecee88a7d686e384b8ee100 /src/audio_core/time_stretch.cpp | |
parent | 27fe8159c53a8e1a76535039e829f8f89a917ec7 (diff) | |
parent | 9969a5db1eeed44f362c61dd2e276c58755276ed (diff) |
Merge pull request #1314 from lioncash/cast
audio_core/time_stretch: Silence truncation warnings in Process()
Diffstat (limited to 'src/audio_core/time_stretch.cpp')
-rw-r--r-- | src/audio_core/time_stretch.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/audio_core/time_stretch.cpp b/src/audio_core/time_stretch.cpp index 5da35e74ea..fc14151da8 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 |