Skip to content

Commit

Permalink
HLE DSP: Format
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat committed Nov 10, 2024
1 parent 7a4f3f4 commit e22bc58
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/core/audio/hle_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,8 @@ namespace Audio {
}

void HLE_DSP::generateFrame(DSPSource& source) {
// Zero out all output samples at first. TODO: Don't zero out the entire frame initially, rather only zero-out the "unwritten" samples when the frame is done being processed.
// Zero out all output samples at first. TODO: Don't zero out the entire frame initially, rather only zero-out the "unwritten" samples when
// the frame is done being processed.
source.currentFrame = {};

if (source.currentSamples.empty()) {
Expand Down Expand Up @@ -556,15 +557,15 @@ namespace Audio {
if (config.outputFormatDirty) {
mixer.channelFormat = config.outputFormat;
}

if (config.masterVolumeDirty) {
mixer.volumes[0] = config.masterVolume;
}

if (config.auxVolume0Dirty) {
mixer.volumes[1] = config.auxVolumes[0];
}

if (config.auxVolume1Dirty) {
mixer.volumes[2] = config.auxVolumes[1];
}
Expand Down Expand Up @@ -726,7 +727,7 @@ namespace Audio {
response = request;
response.resultCode = AAC::ResultCode::Success;
break;

default: Helpers::warn("Unknown AAC command type"); break;
}

Expand All @@ -752,7 +753,7 @@ namespace Audio {
rateMultiplier = 1.f;

buffers = {};
interpolationState = {};
interpolationState = {};
currentSamples.clear();

gains.fill({});
Expand Down

0 comments on commit e22bc58

Please sign in to comment.