mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 22:25:41 +12:00
HLE DSP: Format
This commit is contained in:
parent
7a4f3f4836
commit
e22bc58060
1 changed files with 6 additions and 5 deletions
|
@ -483,7 +483,8 @@ namespace Audio {
|
||||||
}
|
}
|
||||||
|
|
||||||
void HLE_DSP::generateFrame(DSPSource& source) {
|
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 = {};
|
source.currentFrame = {};
|
||||||
|
|
||||||
if (source.currentSamples.empty()) {
|
if (source.currentSamples.empty()) {
|
||||||
|
@ -556,7 +557,7 @@ namespace Audio {
|
||||||
if (config.outputFormatDirty) {
|
if (config.outputFormatDirty) {
|
||||||
mixer.channelFormat = config.outputFormat;
|
mixer.channelFormat = config.outputFormat;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.masterVolumeDirty) {
|
if (config.masterVolumeDirty) {
|
||||||
mixer.volumes[0] = config.masterVolume;
|
mixer.volumes[0] = config.masterVolume;
|
||||||
}
|
}
|
||||||
|
@ -564,7 +565,7 @@ namespace Audio {
|
||||||
if (config.auxVolume0Dirty) {
|
if (config.auxVolume0Dirty) {
|
||||||
mixer.volumes[1] = config.auxVolumes[0];
|
mixer.volumes[1] = config.auxVolumes[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.auxVolume1Dirty) {
|
if (config.auxVolume1Dirty) {
|
||||||
mixer.volumes[2] = config.auxVolumes[1];
|
mixer.volumes[2] = config.auxVolumes[1];
|
||||||
}
|
}
|
||||||
|
@ -726,7 +727,7 @@ namespace Audio {
|
||||||
response = request;
|
response = request;
|
||||||
response.resultCode = AAC::ResultCode::Success;
|
response.resultCode = AAC::ResultCode::Success;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default: Helpers::warn("Unknown AAC command type"); break;
|
default: Helpers::warn("Unknown AAC command type"); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -752,7 +753,7 @@ namespace Audio {
|
||||||
rateMultiplier = 1.f;
|
rateMultiplier = 1.f;
|
||||||
|
|
||||||
buffers = {};
|
buffers = {};
|
||||||
interpolationState = {};
|
interpolationState = {};
|
||||||
currentSamples.clear();
|
currentSamples.clear();
|
||||||
|
|
||||||
gains.fill({});
|
gains.fill({});
|
||||||
|
|
Loading…
Add table
Reference in a new issue