diff options
author | Lioncash <mathew1800@gmail.com> | 2018-09-13 19:48:36 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-09-13 19:50:01 -0400 |
commit | 9969a5db1eeed44f362c61dd2e276c58755276ed (patch) | |
tree | 51f9c7e1ccd07d97071c26f0a7c506d985f59555 /src/audio_core/time_stretch.cpp | |
parent | 8e7497d5bb17b7e322d191cd103479972bcdb39b (diff) |
audio_core/time_stretch: Silence truncation warnings in Process()
The SoundTouch API only accepts uint amount of samples.
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 da094c46be..35709e2c4c 100644 --- a/src/audio_core/time_stretch.cpp +++ b/src/audio_core/time_stretch.cpp @@ -61,8 +61,8 @@ size_t TimeStretcher::Process(const s16* in, size_t num_in, s16* out, size_t num 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 |