diff options
| author | 2018-09-13 19:48:36 -0400 | |
|---|---|---|
| committer | 2018-09-13 19:50:01 -0400 | |
| commit | 9969a5db1eeed44f362c61dd2e276c58755276ed (patch) | |
| tree | 51f9c7e1ccd07d97071c26f0a7c506d985f59555 | |
| parent | Merge pull request #1308 from valentinvanelslande/ipc (diff) | |
| download | yuzu-9969a5db1eeed44f362c61dd2e276c58755276ed.tar.gz yuzu-9969a5db1eeed44f362c61dd2e276c58755276ed.tar.xz yuzu-9969a5db1eeed44f362c61dd2e276c58755276ed.zip | |
audio_core/time_stretch: Silence truncation warnings in Process()
The SoundTouch API only accepts uint amount of samples.
Diffstat (limited to '')
| -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 da094c46b..35709e2c4 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 | |||
| 61 | LOG_DEBUG(Audio, "{:5}/{:5} ratio:{:0.6f} backlog:{:0.6f}", num_in, num_out, m_stretch_ratio, | 61 | LOG_DEBUG(Audio, "{:5}/{:5} ratio:{:0.6f} backlog:{:0.6f}", num_in, num_out, m_stretch_ratio, |
| 62 | backlog_fullness); | 62 | backlog_fullness); |
| 63 | 63 | ||
| 64 | m_sound_touch.putSamples(in, num_in); | 64 | m_sound_touch.putSamples(in, static_cast<u32>(num_in)); |
| 65 | return m_sound_touch.receiveSamples(out, num_out); | 65 | return m_sound_touch.receiveSamples(out, static_cast<u32>(num_out)); |
| 66 | } | 66 | } |
| 67 | 67 | ||
| 68 | } // namespace AudioCore | 68 | } // namespace AudioCore |