aboutsummaryrefslogtreecommitdiff
path: root/plugins/dfsound/oss.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/oss.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/oss.c')
-rw-r--r--plugins/dfsound/oss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/dfsound/oss.c b/plugins/dfsound/oss.c
index b2685fb..04d7446 100644
--- a/plugins/dfsound/oss.c
+++ b/plugins/dfsound/oss.c
@@ -129,13 +129,13 @@ unsigned long SoundGetBytesBuffered(void)
audio_buf_info info;
unsigned long l;
- if(oss_audio_fd == -1) return SOUNDSIZE;
+ if(oss_audio_fd == -1) return 1;
if(ioctl(oss_audio_fd,SNDCTL_DSP_GETOSPACE,&info)==-1)
l=0;
else
{
if(info.fragments<(info.fragstotal>>1)) // can we write in at least the half of fragments?
- l=SOUNDSIZE; // -> no? wait
+ l=1; // -> no? wait
else l=0; // -> else go on
}