summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHexagon12 <Hexagon12@users.noreply.github.com>2019-01-14 15:49:37 +0100
committerGitHub <noreply@github.com>2019-01-14 15:49:37 +0100
commit7c6bb8c17f007595f149089fa8033c1b540a283f (patch)
tree8e5e6c5b3936b98306c58038decca92ffa46d9e7 /src
parentMerge pull request #1848 from FreddyFunk/QJsonArray (diff)
parentaudio_core: remove unnecessary spaces on comments (diff)
downloadyuzu-7c6bb8c17f007595f149089fa8033c1b540a283f.tar
yuzu-7c6bb8c17f007595f149089fa8033c1b540a283f.tar.gz
yuzu-7c6bb8c17f007595f149089fa8033c1b540a283f.tar.bz2
yuzu-7c6bb8c17f007595f149089fa8033c1b540a283f.tar.lz
yuzu-7c6bb8c17f007595f149089fa8033c1b540a283f.tar.xz
yuzu-7c6bb8c17f007595f149089fa8033c1b540a283f.tar.zst
yuzu-7c6bb8c17f007595f149089fa8033c1b540a283f.zip
Diffstat (limited to '')
-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 2fe0b3aef..726591fce 100644
--- a/src/audio_core/time_stretch.cpp
+++ b/src/audio_core/time_stretch.cpp
@@ -53,8 +53,8 @@ std::size_t TimeStretcher::Process(const s16* in, std::size_t num_in, s16* out,
const double lpf_gain = 1.0 - std::exp(-time_delta / lpf_time_scale);
m_stretch_ratio += lpf_gain * (current_ratio - m_stretch_ratio);
- // Place a lower limit of 5% speed. When a game boots up, there will be
- // many silence samples. These do not need to be timestretched.
+ // Place a lower limit of 5% speed. When a game boots up, there will be
+ // many silence samples. These do not need to be timestretched.
m_stretch_ratio = std::max(m_stretch_ratio, 0.05);
m_sound_touch.setTempo(m_stretch_ratio);