X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=libpicofe.git;a=blobdiff_plain;f=sndout_sdl.c;h=a7be5ed7e0ae1eea6877d882306113fc4e6f2766;hp=83b3ea2e3a7c195d4f32b2364489a3e5bcc03d17;hb=d1453cf7e6d5d6758cc5d72c6d3af7d37156bf72;hpb=26d3ca0d29e87a14943d29fcafc93da753df60cd diff --git a/sndout_sdl.c b/sndout_sdl.c index 83b3ea2..a7be5ed 100644 --- 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;