mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Pass the game selection screen audio through the resampler. Fixes #7316 .
This commit is contained in:
1 parent
74ae85ff0e
commit
2792602252
5 files changed
+33
-12
No files matched your search
+5
-5
@@ -232,13 +232,13 @@ std::string NativeQueryConfig(std::string query) {
|
||||
}
|
||||
|
||||
int NativeMix(short *audio, int num_samples) {
|
||||
if (GetUIState() == UISTATE_INGAME) {
|
||||
int sample_rate = System_GetPropertyInt(SYSPROP_AUDIO_SAMPLE_RATE);
|
||||
num_samples = __AudioMix(audio, num_samples, sample_rate > 0 ? sample_rate : 44100);
|
||||
} else {
|
||||
MixBackgroundAudio(audio, num_samples);
|
||||
if (GetUIState() != UISTATE_INGAME) {
|
||||
PlayBackgroundAudio();
|
||||
}
|
||||
|
||||
int sample_rate = System_GetPropertyInt(SYSPROP_AUDIO_SAMPLE_RATE);
|
||||
num_samples = __AudioMix(audio, num_samples, sample_rate > 0 ? sample_rate : 44100);
|
||||
|
||||
#ifdef _WIN32
|
||||
winAudioBackend->Update();
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user