notaz.gp2x.de
/
libpicofe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c52e662
)
SDL sound: Reduce considerably sound latency
author
Paul Cercueil
<paul@crapouillou.net>
Sat, 21 Sep 2013 21:40:17 +0000
(18:40 -0300)
committer
Paul Cercueil
<paul@crapouillou.net>
Mon, 7 Oct 2013 15:10:35 +0000
(17:10 +0200)
sndout_sdl.c
patch
|
blob
|
blame
|
history
diff --git
a/sndout_sdl.c
b/sndout_sdl.c
index
83b3ea2
..
a7be5ed
100644
(file)
--- a/
sndout_sdl.c
+++ b/
sndout_sdl.c
@@
-75,7
+75,7
@@
int sndout_sdl_start(int rate, int stereo)
desired.callback = callback;
desired.userdata = NULL;
- samples = rate
* 4 * 16 / 1000
;
+ samples = rate
>> 6
;
for (shift = 8; (1 << shift) < samples; shift++)
;
desired.samples = 1 << shift;