X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfsound%2Fsdl.c;h=f7dc298cd077c700f78821c66f6b9fc28f00d7d0;hp=f6777440107898f7b91c0ff5d4383ea947fab753;hb=f8edb5bc279ba09aa7bc762da51236fd368827b0;hpb=97ea407715c0eafc8d73ffc5477f6d7e6ad8f20b diff --git a/plugins/dfsound/sdl.c b/plugins/dfsound/sdl.c index f6777440..f7dc298c 100644 --- a/plugins/dfsound/sdl.c +++ b/plugins/dfsound/sdl.c @@ -106,12 +106,12 @@ void RemoveSound(void) { unsigned long SoundGetBytesBuffered(void) { int size; - if (pSndBuffer == NULL) return SOUNDSIZE; + if (pSndBuffer == NULL) return 1; size = iReadPos - iWritePos; if (size <= 0) size += iBufSize; - if (size < iBufSize / 2) return SOUNDSIZE; + if (size < iBufSize / 2) return 1; return 0; }