summaryrefslogtreecommitdiffstats
path: root/src/audio_core/hle
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2016-08-31 17:55:10 +0200
committerMerryMage <MerryMage@users.noreply.github.com>2016-08-31 17:55:10 +0200
commit0ef4185644def3e7d99d88af3c8dd27d40660c82 (patch)
tree0a6b8f018184ea30b5b8471520bd426b6de52b65 /src/audio_core/hle
parentMerge pull request #2034 from JayFoxRox/avoid-glsl-error (diff)
downloadyuzu-0ef4185644def3e7d99d88af3c8dd27d40660c82.tar
yuzu-0ef4185644def3e7d99d88af3c8dd27d40660c82.tar.gz
yuzu-0ef4185644def3e7d99d88af3c8dd27d40660c82.tar.bz2
yuzu-0ef4185644def3e7d99d88af3c8dd27d40660c82.tar.lz
yuzu-0ef4185644def3e7d99d88af3c8dd27d40660c82.tar.xz
yuzu-0ef4185644def3e7d99d88af3c8dd27d40660c82.tar.zst
yuzu-0ef4185644def3e7d99d88af3c8dd27d40660c82.zip
Diffstat (limited to 'src/audio_core/hle')
-rw-r--r--src/audio_core/hle/dsp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audio_core/hle/dsp.cpp b/src/audio_core/hle/dsp.cpp
index 0640e1eff..a195bc74c 100644
--- a/src/audio_core/hle/dsp.cpp
+++ b/src/audio_core/hle/dsp.cpp
@@ -90,7 +90,8 @@ static AudioCore::TimeStretcher time_stretcher;
static void OutputCurrentFrame(const StereoFrame16& frame) {
time_stretcher.AddSamples(&frame[0][0], frame.size());
- sink->EnqueueSamples(time_stretcher.Process(sink->SamplesInQueue()));
+ std::vector<s16> stretched_samples = time_stretcher.Process(sink->SamplesInQueue());
+ sink->EnqueueSamples(stretched_samples.data(), stretched_samples.size() / 2);
}
// Public Interface