summaryrefslogtreecommitdiffstats
path: root/src/audio_core/audio_renderer.cpp
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2018-08-12 20:32:39 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2018-08-13 12:26:50 +0200
commit4b44b8b4fba5ddfe28e5c6bd418f48ba475eaa79 (patch)
treeaff40cf37d7946ebff6317f2f715f21075514ebb /src/audio_core/audio_renderer.cpp
parentaudio_core: Implement low-pass filter (diff)
downloadyuzu-4b44b8b4fba5ddfe28e5c6bd418f48ba475eaa79.tar
yuzu-4b44b8b4fba5ddfe28e5c6bd418f48ba475eaa79.tar.gz
yuzu-4b44b8b4fba5ddfe28e5c6bd418f48ba475eaa79.tar.bz2
yuzu-4b44b8b4fba5ddfe28e5c6bd418f48ba475eaa79.tar.lz
yuzu-4b44b8b4fba5ddfe28e5c6bd418f48ba475eaa79.tar.xz
yuzu-4b44b8b4fba5ddfe28e5c6bd418f48ba475eaa79.tar.zst
yuzu-4b44b8b4fba5ddfe28e5c6bd418f48ba475eaa79.zip
Diffstat (limited to '')
-rw-r--r--src/audio_core/audio_renderer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/audio_core/audio_renderer.cpp b/src/audio_core/audio_renderer.cpp
index 6ebed3fb0..7bff635b8 100644
--- a/src/audio_core/audio_renderer.cpp
+++ b/src/audio_core/audio_renderer.cpp
@@ -2,6 +2,7 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
+#include "audio_core/algorithm/interpolate.h"
#include "audio_core/audio_renderer.h"
#include "common/assert.h"
#include "common/logging/log.h"
@@ -199,6 +200,8 @@ void AudioRenderer::VoiceState::RefreshBuffer() {
break;
}
+ samples = Interpolate(interp_state, std::move(samples), Info().sample_rate, STREAM_SAMPLE_RATE);
+
is_refresh_pending = false;
}