From f8edb5bc279ba09aa7bc762da51236fd368827b0 Mon Sep 17 00:00:00 2001 From: notaz Date: Wed, 4 Jul 2012 19:53:30 +0300 Subject: 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. --- plugins/dfsound/alsa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/dfsound/alsa.c') diff --git a/plugins/dfsound/alsa.c b/plugins/dfsound/alsa.c index 7e59433..c67943a 100644 --- a/plugins/dfsound/alsa.c +++ b/plugins/dfsound/alsa.c @@ -135,11 +135,11 @@ unsigned long SoundGetBytesBuffered(void) unsigned long l; if (handle == NULL) // failed to open? - return SOUNDSIZE; + return 1; l = snd_pcm_avail(handle); if (l < 0) return 0; if (l < buffer_size / 2) // can we write in at least the half of fragments? - l = SOUNDSIZE; // -> no? wait + l = 1; // -> no? wait else l = 0; // -> else go on return l; -- cgit v1.2.3