notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spu: remove some hacks, to be reworked
[pcsx_rearmed.git]
/
plugins
/
dfsound
/
alsa.c
diff --git
a/plugins/dfsound/alsa.c
b/plugins/dfsound/alsa.c
index
7e59433
..
c67943a
100644
(file)
--- 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?
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 = 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;
else l = 0; // -> else go on
return l;