Răsfoiți Sursa

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

Fixes Bugzilla #3726.
Ryan C. Gordon 7 ani în urmă
părinte
comite
a09efc73d2
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      src/audio/psp/SDL_pspaudio.c

+ 1 - 0
src/audio/psp/SDL_pspaudio.c

@@ -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);