platform ps2, handle audio similar to psp

This commit is contained in:
kub 2024-07-21 16:33:07 +02:00
parent ecc3f2ecc0
commit 75db61b756
2 changed files with 85 additions and 26 deletions

View file

@ -450,7 +450,7 @@ static void writeSound(int len)
if (samples_made - samples_done < samples_block * (SOUND_BLOCK_COUNT-2) - 4) {
sndBuffer_ptr += len / 2;
if (sndBuffer_ptr - sndBuffer > sizeof(sndBuffer)/2)
lprintf("snd ovrn %d %d\n", len, PicoIn.sndOut - sndBuffer);
lprintf("snd ovrn %d %d\n", len, sndBuffer_ptr - sndBuffer);
if (sndBuffer_ptr >= sndBuffer_endptr) {
int wrap = sndBuffer_ptr - sndBuffer_endptr;
if (wrap > 0)