mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
sceAudio: only use the optimized volume=max path if stereo, add a TODO.
Might take care of #4470.
This commit is contained in:
parent
5b9cad00e2
commit
714754e149
1 changed files with 3 additions and 1 deletions
|
@ -207,7 +207,9 @@ u32 __AudioEnqueue(AudioChannel &chan, int chanNum, bool blocking) {
|
||||||
int leftVol = chan.leftVolume;
|
int leftVol = chan.leftVolume;
|
||||||
int rightVol = chan.rightVolume;
|
int rightVol = chan.rightVolume;
|
||||||
|
|
||||||
if (leftVol == (1 << 15) && rightVol == (1 << 15) && IS_LITTLE_ENDIAN) {
|
if (leftVol == (1 << 15) && rightVol == (1 << 15) && chan.format == PSP_AUDIO_FORMAT_STEREO && IS_LITTLE_ENDIAN) {
|
||||||
|
// TODO: Add mono->stereo conversion to this path.
|
||||||
|
|
||||||
// Good news: the volume doesn't affect the values at all.
|
// Good news: the volume doesn't affect the values at all.
|
||||||
// We can just do a direct memory copy.
|
// We can just do a direct memory copy.
|
||||||
const u32 totalSamples = chan.sampleCount * (chan.format == PSP_AUDIO_FORMAT_STEREO ? 2 : 1);
|
const u32 totalSamples = chan.sampleCount * (chan.format == PSP_AUDIO_FORMAT_STEREO ? 2 : 1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue