From d7cf63db67b9bb61d73e0130a4da5ec5d7cb2e1a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sat, 22 Jul 2023 11:45:11 -0400 Subject: [PATCH] ps2audio: Patched to compile. --- src/audio/ps2/SDL_ps2audio.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/audio/ps2/SDL_ps2audio.c b/src/audio/ps2/SDL_ps2audio.c index 22d841d47f..0f16344b73 100644 --- a/src/audio/ps2/SDL_ps2audio.c +++ b/src/audio/ps2/SDL_ps2audio.c @@ -61,7 +61,7 @@ static int PS2AUDIO_OpenDevice(SDL_AudioDevice *device) device->hidden->channel = audsrv_set_format(&format); audsrv_set_volume(MAX_VOLUME); - if (_this->hidden->channel < 0) { + if (device->hidden->channel < 0) { return SDL_SetError("Couldn't reserve hardware channel"); } @@ -110,9 +110,9 @@ static void PS2AUDIO_CloseDevice(SDL_AudioDevice *device) device->hidden->channel = -1; } - if (_this->hidden->rawbuf != NULL) { - SDL_aligned_free(_this->hidden->rawbuf); - _this->hidden->rawbuf = NULL; + if (device->hidden->rawbuf != NULL) { + SDL_aligned_free(device->hidden->rawbuf); + device->hidden->rawbuf =2 NULL; } SDL_free(device->hidden); device->hidden = NULL;