mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-07 07:38:04 -04:00
SDL sound: Reduce considerably sound latency
This commit is contained in:
parent
c52e6628cd
commit
3e0af0815a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue