pspaudio: Patched to compile.

This commit is contained in:
Ryan C. Gordon
2023-07-22 13:32:44 -04:00
parent 9a2a0a1463
commit 4aa95c21bc

View File

@@ -58,7 +58,7 @@ static int PSPAUDIO_OpenDevice(SDL_AudioDevice *device)
// The number of channels (1 or 2). // The number of channels (1 or 2).
device->spec.channels = device->spec.channels == 1 ? 1 : 2; device->spec.channels = device->spec.channels == 1 ? 1 : 2;
const int format = (device->spec.channels == 1) ? PSP_AUDIO_FORMAT_MONO : PSP_AUDIO_FORMAT_STEREO; const int format = (device->spec.channels == 1) ? PSP_AUDIO_FORMAT_MONO : PSP_AUDIO_FORMAT_STEREO;
device->hidden->channel = sceAudioChReserve(PSP_AUDIO_NEXT_CHANNEL, device->samples_frames, format); device->hidden->channel = sceAudioChReserve(PSP_AUDIO_NEXT_CHANNEL, device->sample_frames, format);
} else { } else {
// 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11050, 8000 // 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11050, 8000
switch (device->spec.freq) { switch (device->spec.freq) {