X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fdfsound%2Falsa.c;h=c67943a03f6007c08535205433ffe333a9db3709;hp=7e594338ad1b53c247400ef35759fb3fe73ceb01;hb=f8edb5bc279ba09aa7bc762da51236fd368827b0;hpb=6d75977b13fede33db381324c610561c6e723a8b diff --git a/plugins/dfsound/alsa.c b/plugins/dfsound/alsa.c index 7e594338..c67943a0 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;