X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfsound%2Foss.c;h=04d74463536544b6b4063e03796c14993169e897;hp=b2685fbf940efaf7dd59ec7f85679cda3a65321c;hb=c67af2ac1a8305c7377c7dda844257c5bc1545e3;hpb=97ea407715c0eafc8d73ffc5477f6d7e6ad8f20b diff --git a/plugins/dfsound/oss.c b/plugins/dfsound/oss.c index b2685fbf..04d74463 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 }