diff options
author | Merry <MerryMage@users.noreply.github.com> | 2017-09-26 09:47:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-26 09:47:37 +0200 |
commit | 0c20da7fde7ed659977ce145e003c6b2f42b7290 (patch) | |
tree | fb0624e37338033ae84a8948be5c235ec8d4f1dd /src/audio_core/interpolate.cpp | |
parent | Merge pull request #2947 from Subv/selfncch_factory (diff) | |
parent | Audio: Use std::deque instead of std::vector for the audio buffer type (StereoBuffer16). (diff) | |
download | yuzu-0c20da7fde7ed659977ce145e003c6b2f42b7290.tar yuzu-0c20da7fde7ed659977ce145e003c6b2f42b7290.tar.gz yuzu-0c20da7fde7ed659977ce145e003c6b2f42b7290.tar.bz2 yuzu-0c20da7fde7ed659977ce145e003c6b2f42b7290.tar.lz yuzu-0c20da7fde7ed659977ce145e003c6b2f42b7290.tar.xz yuzu-0c20da7fde7ed659977ce145e003c6b2f42b7290.tar.zst yuzu-0c20da7fde7ed659977ce145e003c6b2f42b7290.zip |
Diffstat (limited to '')
-rw-r--r-- | src/audio_core/interpolate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/interpolate.cpp b/src/audio_core/interpolate.cpp index 16e68bc5c..83573d772 100644 --- a/src/audio_core/interpolate.cpp +++ b/src/audio_core/interpolate.cpp @@ -47,7 +47,7 @@ static void StepOverSamples(State& state, StereoBuffer16& input, float rate, state.xn1 = input[inputi + 1]; state.fposition = fposition - inputi * scale_factor; - input.erase(input.begin(), input.begin() + inputi + 2); + input.erase(input.begin(), std::next(input.begin(), inputi + 2)); } void None(State& state, StereoBuffer16& input, float rate, DSP::HLE::StereoFrame16& output, |