mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 06:40:18 +00:00
(Vita) Fix the audio driver
This commit is contained in:
parent
5e6ec3a78b
commit
dcd9f09d17
@ -52,7 +52,8 @@ 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
|
||||||
int port = sceAudioOutOpenPort(PSP2_AUDIO_OUT_PORT_TYPE_MAIN, AUDIO_OUT_COUNT, psp->rate, 2);
|
int port = sceAudioOutOpenPort(PSP2_AUDIO_OUT_PORT_TYPE_MAIN, AUDIO_OUT_COUNT,
|
||||||
|
psp->rate, PSP2_AUDIO_OUT_MODE_STEREO);
|
||||||
#else
|
#else
|
||||||
sceAudioSRCChReserve(AUDIO_OUT_COUNT, psp->rate, 2);
|
sceAudioSRCChReserve(AUDIO_OUT_COUNT, psp->rate, 2);
|
||||||
#endif
|
#endif
|
||||||
@ -65,7 +66,7 @@ static int audioMainLoop(SceSize args, void* argp)
|
|||||||
< (AUDIO_OUT_COUNT * 2);
|
< (AUDIO_OUT_COUNT * 2);
|
||||||
|
|
||||||
#ifdef VITA
|
#ifdef VITA
|
||||||
sceAudioOutOutput(0,
|
sceAudioOutOutput(port,
|
||||||
cond ? psp->zeroBuffer : (psp->buffer + readPos));
|
cond ? psp->zeroBuffer : (psp->buffer + readPos));
|
||||||
#else
|
#else
|
||||||
sceAudioSRCOutputBlocking(PSP_AUDIO_VOLUME_MAX, cond ? (psp->zeroBuffer)
|
sceAudioSRCOutputBlocking(PSP_AUDIO_VOLUME_MAX, cond ? (psp->zeroBuffer)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user