mirror of
https://github.com/libretro/RetroArch
synced 2025-02-19 12:41:00 +00:00
(Vita) psp_audio.c - Some more work
This commit is contained in:
parent
536b7fad0b
commit
e57202ff90
@ -51,7 +51,7 @@ static int audioMainLoop(SceSize args, void* argp)
|
|||||||
psp_audio_t* psp = *((psp_audio_t**)argp);
|
psp_audio_t* psp = *((psp_audio_t**)argp);
|
||||||
|
|
||||||
#ifdef VITA
|
#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
|
#else
|
||||||
sceAudioSRCChReserve(AUDIO_OUT_COUNT, psp->rate, 2);
|
sceAudioSRCChReserve(AUDIO_OUT_COUNT, psp->rate, 2);
|
||||||
#endif
|
#endif
|
||||||
@ -79,7 +79,9 @@ static int audioMainLoop(SceSize args, void* argp)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef VITA
|
#ifdef VITA
|
||||||
|
sceAudioOutReleasePort(port);
|
||||||
|
#else
|
||||||
sceAudioSRCChRelease();
|
sceAudioSRCChRelease();
|
||||||
#endif
|
#endif
|
||||||
sceKernelExitThread(0);
|
sceKernelExitThread(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user