diff options
| author | 2018-09-17 09:51:47 -0400 | |
|---|---|---|
| committer | 2018-09-17 09:51:47 -0400 | |
| commit | 076add4ccddff3940e20fc320615e3d330f77119 (patch) | |
| tree | bacabcfed8665974c276489509a1caa330ad36a2 /src/audio_core/time_stretch.cpp | |
| parent | Merge pull request #1329 from raven02/bgr5a1u (diff) | |
| parent | Port #4182 from Citra: "Prefix all size_t with std::" (diff) | |
| download | yuzu-076add4ccddff3940e20fc320615e3d330f77119.tar.gz yuzu-076add4ccddff3940e20fc320615e3d330f77119.tar.xz yuzu-076add4ccddff3940e20fc320615e3d330f77119.zip | |
Merge pull request #1326 from FearlessTobi/port-4182
Port #4182 from Citra: "Prefix all size_t with std::"
Diffstat (limited to 'src/audio_core/time_stretch.cpp')
| -rw-r--r-- | src/audio_core/time_stretch.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audio_core/time_stretch.cpp b/src/audio_core/time_stretch.cpp index da094c46b..5da35e74e 100644 --- a/src/audio_core/time_stretch.cpp +++ b/src/audio_core/time_stretch.cpp | |||
| @@ -26,7 +26,8 @@ void TimeStretcher::Flush() { | |||
| 26 | m_sound_touch.flush(); | 26 | m_sound_touch.flush(); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | size_t TimeStretcher::Process(const s16* in, size_t num_in, s16* out, size_t num_out) { | 29 | std::size_t TimeStretcher::Process(const s16* in, std::size_t num_in, s16* out, |
| 30 | std::size_t num_out) { | ||
| 30 | const double time_delta = static_cast<double>(num_out) / m_sample_rate; // seconds | 31 | const double time_delta = static_cast<double>(num_out) / m_sample_rate; // seconds |
| 31 | 32 | ||
| 32 | // We were given actual_samples number of samples, and num_samples were requested from us. | 33 | // We were given actual_samples number of samples, and num_samples were requested from us. |