From e57202ff906316abef4737e275a660712802467d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 12 Aug 2015 14:47:39 +0200 Subject: [PATCH] (Vita) psp_audio.c - Some more work --- audio/drivers/psp_audio.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/audio/drivers/psp_audio.c b/audio/drivers/psp_audio.c index a94b7b0be6..99fb780f02 100644 --- a/audio/drivers/psp_audio.c +++ b/audio/drivers/psp_audio.c @@ -51,7 +51,7 @@ static int audioMainLoop(SceSize args, void* argp) psp_audio_t* psp = *((psp_audio_t**)argp); #ifdef VITA - sceAudioOutOpenPort(0, AUDIO_OUT_COUNT, psp->rate, 2); + int port = sceAudioOutOpenPort(PSP2_AUDIO_OUT_PORT_TYPE_MAIN, AUDIO_OUT_COUNT, psp->rate, 2); #else sceAudioSRCChReserve(AUDIO_OUT_COUNT, psp->rate, 2); #endif @@ -79,7 +79,9 @@ static int audioMainLoop(SceSize args, void* argp) } } -#ifndef VITA +#ifdef VITA + sceAudioOutReleasePort(port); +#else sceAudioSRCChRelease(); #endif sceKernelExitThread(0);