[Commits] SDL: psp: Force audio channels to stereo if > 2 channels request...

libsdl.org revision control commits-owner at libsdl.org
Fri Aug 4 13:18:48 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/04063928c4a8
changeset: 11184:04063928c4a8
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Fri Aug 04 16:18:34 2017 -0400
description:
psp: Force audio channels to stereo if > 2 channels requested (thanks, Solra!).

Fixes Bugzilla #3726.

diffstat:

 src/audio/psp/SDL_pspaudio.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 2b3b51f36654 -r 04063928c4a8 src/audio/psp/SDL_pspaudio.c
--- a/src/audio/psp/SDL_pspaudio.c	Fri Aug 04 13:06:56 2017 -0700
+++ b/src/audio/psp/SDL_pspaudio.c	Fri Aug 04 16:18:34 2017 -0400
@@ -80,6 +80,7 @@
     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);


More information about the commits mailing list