summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/audio_core/hle/dsp.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/audio_core/hle/dsp.cpp b/src/audio_core/hle/dsp.cpp
index 1c00ed472..0640e1eff 100644
--- a/src/audio_core/hle/dsp.cpp
+++ b/src/audio_core/hle/dsp.cpp
@@ -88,6 +88,11 @@ static StereoFrame16 GenerateCurrentFrame() {
88static std::unique_ptr<AudioCore::Sink> sink; 88static std::unique_ptr<AudioCore::Sink> sink;
89static AudioCore::TimeStretcher time_stretcher; 89static AudioCore::TimeStretcher time_stretcher;
90 90
91static void OutputCurrentFrame(const StereoFrame16& frame) {
92 time_stretcher.AddSamples(&frame[0][0], frame.size());
93 sink->EnqueueSamples(time_stretcher.Process(sink->SamplesInQueue()));
94}
95
91// Public Interface 96// Public Interface
92 97
93void Init() { 98void Init() {
@@ -121,6 +126,8 @@ bool Tick() {
121 // TODO: Check dsp::DSP semaphore (which indicates emulated application has finished writing to shared memory region) 126 // TODO: Check dsp::DSP semaphore (which indicates emulated application has finished writing to shared memory region)
122 current_frame = GenerateCurrentFrame(); 127 current_frame = GenerateCurrentFrame();
123 128
129 OutputCurrentFrame(current_frame);
130
124 return true; 131 return true;
125} 132}
126 133