mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-06 06:05:40 +12:00
HLE DSP: Fix up resampling a bit
This commit is contained in:
parent
c70388dbeb
commit
6a79309722
1 changed files with 4 additions and 4 deletions
|
@ -487,10 +487,10 @@ namespace Audio {
|
|||
|
||||
decodeBuffer(source);
|
||||
} else {
|
||||
uint maxSampleCount = uint(float(Audio::samplesInFrame) * 1.0);
|
||||
usize outputCount = 0;
|
||||
static constexpr usize maxSamples = Audio::samplesInFrame;
|
||||
|
||||
while (outputCount < maxSampleCount) {
|
||||
while (outputCount < maxSamples) {
|
||||
if (source.currentSamples.empty()) {
|
||||
if (source.buffers.empty()) {
|
||||
break;
|
||||
|
@ -518,9 +518,9 @@ namespace Audio {
|
|||
);
|
||||
break;
|
||||
}
|
||||
|
||||
source.samplePosition += u32(outputCount);
|
||||
}
|
||||
|
||||
source.samplePosition += u32(outputCount * source.rateMultiplier);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue