changeset 316:a03e604f4e75

Adjust audio buffer size.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 13 Oct 2012 07:36:32 +0300
parents ec70ae5aaa1a
children adb101296bb8 4cc21ebab650
files dmsimple.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dmsimple.c	Sat Oct 13 07:23:13 2012 +0300
+++ b/dmsimple.c	Sat Oct 13 07:36:32 2012 +0300
@@ -505,7 +505,7 @@
         engine.optAfmt.freq     = 44100;
         engine.optAfmt.format   = AUDIO_S16SYS;
         engine.optAfmt.channels = 2;
-        engine.optAfmt.samples  = 16*1024;
+        engine.optAfmt.samples  = engine.optAfmt.freq / 16;
     }
 
 #ifdef DM_USE_JSS