diff options
author | notaz | 2012-07-04 19:53:30 +0300 |
---|---|---|
committer | notaz | 2012-07-09 02:35:59 +0300 |
commit | f8edb5bc279ba09aa7bc762da51236fd368827b0 (patch) | |
tree | 1b33700d53c696ccb8bc2c8362f5df24a63191e5 /plugins/dfsound/alsa.c | |
parent | 6d75977b13fede33db381324c610561c6e723a8b (diff) | |
download | pcsx_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/alsa.c')
-rw-r--r-- | plugins/dfsound/alsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |