summaryrefslogtreecommitdiff
path: root/src/audio_core/hle/dsp.cpp
diff options
context:
space:
mode:
authorGravatar MerryMage2016-08-31 16:55:10 +0100
committerGravatar MerryMage2016-08-31 16:55:10 +0100
commit0ef4185644def3e7d99d88af3c8dd27d40660c82 (patch)
tree0a6b8f018184ea30b5b8471520bd426b6de52b65 /src/audio_core/hle/dsp.cpp
parentMerge pull request #2034 from JayFoxRox/avoid-glsl-error (diff)
downloadyuzu-0ef4185644def3e7d99d88af3c8dd27d40660c82.tar.gz
yuzu-0ef4185644def3e7d99d88af3c8dd27d40660c82.tar.xz
yuzu-0ef4185644def3e7d99d88af3c8dd27d40660c82.zip
sink: Change EnqueueSamples to take a pointer to a buffer instead of a std::vector
Diffstat (limited to 'src/audio_core/hle/dsp.cpp')
-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;
90 90
91static void OutputCurrentFrame(const StereoFrame16& frame) { 91static void OutputCurrentFrame(const StereoFrame16& frame) {
92 time_stretcher.AddSamples(&frame[0][0], frame.size()); 92 time_stretcher.AddSamples(&frame[0][0], frame.size());
93 sink->EnqueueSamples(time_stretcher.Process(sink->SamplesInQueue())); 93 std::vector<s16> stretched_samples = time_stretcher.Process(sink->SamplesInQueue());
94 sink->EnqueueSamples(stretched_samples.data(), stretched_samples.size() / 2);
94} 95}
95 96
96// Public Interface 97// Public Interface