summaryrefslogtreecommitdiffstats
path: root/src/audio_core/hle/dsp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio_core/hle/dsp.cpp')
-rw-r--r--src/audio_core/hle/dsp.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/audio_core/hle/dsp.cpp b/src/audio_core/hle/dsp.cpp
index 1420bf2dd..5c8afa111 100644
--- a/src/audio_core/hle/dsp.cpp
+++ b/src/audio_core/hle/dsp.cpp
@@ -47,11 +47,9 @@ static SharedMemory& WriteRegion() {
// Audio processing and mixing
static std::array<Source, num_sources> sources = {
- Source(0), Source(1), Source(2), Source(3), Source(4), Source(5),
- Source(6), Source(7), Source(8), Source(9), Source(10), Source(11),
- Source(12), Source(13), Source(14), Source(15), Source(16), Source(17),
- Source(18), Source(19), Source(20), Source(21), Source(22), Source(23)
-};
+ Source(0), Source(1), Source(2), Source(3), Source(4), Source(5), Source(6), Source(7),
+ Source(8), Source(9), Source(10), Source(11), Source(12), Source(13), Source(14), Source(15),
+ Source(16), Source(17), Source(18), Source(19), Source(20), Source(21), Source(22), Source(23)};
static Mixers mixers;
static StereoFrame16 GenerateCurrentFrame() {
@@ -62,14 +60,16 @@ static StereoFrame16 GenerateCurrentFrame() {
// Generate intermediate mixes
for (size_t i = 0; i < num_sources; i++) {
- write.source_statuses.status[i] = sources[i].Tick(read.source_configurations.config[i], read.adpcm_coefficients.coeff[i]);
+ write.source_statuses.status[i] =
+ sources[i].Tick(read.source_configurations.config[i], read.adpcm_coefficients.coeff[i]);
for (size_t mix = 0; mix < 3; mix++) {
sources[i].MixInto(intermediate_mixes[mix], mix);
}
}
// Generate final mix
- write.dsp_status = mixers.Tick(read.dsp_configuration, read.intermediate_mix_samples, write.intermediate_mix_samples, intermediate_mixes);
+ write.dsp_status = mixers.Tick(read.dsp_configuration, read.intermediate_mix_samples,
+ write.intermediate_mix_samples, intermediate_mixes);
StereoFrame16 output_frame = mixers.GetOutput();
@@ -152,7 +152,8 @@ void Shutdown() {
bool Tick() {
StereoFrame16 current_frame = {};
- // TODO: Check dsp::DSP semaphore (which indicates emulated application has finished writing to shared memory region)
+ // TODO: Check dsp::DSP semaphore (which indicates emulated application has finished writing to
+ // shared memory region)
current_frame = GenerateCurrentFrame();
OutputCurrentFrame(current_frame);