1
0
mirror of https://github.com/Relintai/sdl2_frt.git synced 2025-05-13 16:12:08 +02:00

psp: Force audio channels to stereo if > 2 channels requested (thanks, Solra!).

Fixes Bugzilla .
This commit is contained in:
Ryan C. Gordon 2017-08-04 16:18:34 -04:00
parent cc5ceb1165
commit a09efc73d2

View File

@ -80,6 +80,7 @@ PSPAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscapture)
if (this->spec.channels == 1) {
format = PSP_AUDIO_FORMAT_MONO;
} else {
this->spec.channels = 2;
format = PSP_AUDIO_FORMAT_STEREO;
}
this->hidden->channel = sceAudioChReserve(PSP_AUDIO_NEXT_CHANNEL, this->spec.samples, format);