aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfsound/sdl.c
diff options
context:
space:
mode:
authornotaz2012-07-04 19:53:30 +0300
committernotaz2012-07-09 02:35:59 +0300
commitf8edb5bc279ba09aa7bc762da51236fd368827b0 (patch)
tree1b33700d53c696ccb8bc2c8362f5df24a63191e5 /plugins/dfsound/sdl.c
parent6d75977b13fede33db381324c610561c6e723a8b (diff)
downloadpcsx_rearmed-f8edb5bc279ba09aa7bc762da51236fd368827b0.tar.gz
pcsx_rearmed-f8edb5bc279ba09aa7bc762da51236fd368827b0.tar.bz2
pcsx_rearmed-f8edb5bc279ba09aa7bc762da51236fd368827b0.zip
spu: remove some hacks, to be reworked
get rid of always-iSpuAsyncWait and iSecureStart hacks. Also SoundGetBytesBuffered is lying, make that lie more obvious and remove some confusing pointless constants.
Diffstat (limited to 'plugins/dfsound/sdl.c')
-rw-r--r--plugins/dfsound/sdl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/dfsound/sdl.c b/plugins/dfsound/sdl.c
index f677744..f7dc298 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;
}