mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-07 08:08:04 -04:00
platform ps2, handle audio similar to psp
This commit is contained in:
parent
ecc3f2ecc0
commit
75db61b756
2 changed files with 85 additions and 26 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue