<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Index: apps/pcmbuf.c
===================================================================
RCS file: /cvsroot/rockbox/apps/pcmbuf.c,v
retrieving revision 1.31
diff -u -r1.31 pcmbuf.c
--- apps/pcmbuf.c	22 Feb 2006 01:56:44 -0000	1.31
+++ apps/pcmbuf.c	10 Apr 2006 18:11:52 -0000
@@ -729,7 +729,7 @@
         pcmbuf_boost(true);
         crossfade_active = false;
         /* Pre-buffer 1s. */
-        if (!LOW_DATA(4))
+        if (!LOW_DATA(1))
         {
             logf("pcm starting");
             pcmbuf_play_start();
Index: apps/pcmbuf.h
===================================================================
RCS file: /cvsroot/rockbox/apps/pcmbuf.h,v
retrieving revision 1.12
diff -u -r1.12 pcmbuf.h
--- apps/pcmbuf.h	22 Feb 2006 01:56:44 -0000	1.12
+++ apps/pcmbuf.h	10 Apr 2006 18:11:52 -0000
@@ -19,9 +19,9 @@
 #ifndef PCMBUF_H
 #define PCMBUF_H
 
-#define PCMBUF_TARGET_CHUNK 32768 /* This is the target fill size of chunks
+#define PCMBUF_TARGET_CHUNK 16384 /* This is the target fill size of chunks
                                      on the pcm buffer */
-#define PCMBUF_MINAVG_CHUNK 24576 /* This is the minimum average size of
+#define PCMBUF_MINAVG_CHUNK 12288 /* This is the minimum average size of
                                      chunks on the pcm buffer (or we run out
                                      of buffer descriptors, which is
                                      non-fatal) */
Index: apps/playback.c
===================================================================
RCS file: /cvsroot/rockbox/apps/playback.c,v
retrieving revision 1.215
diff -u -r1.215 playback.c
--- apps/playback.c	3 Mar 2006 02:09:54 -0000	1.215
+++ apps/playback.c	10 Apr 2006 18:11:53 -0000
@@ -110,8 +110,8 @@
 };
 
 /* As defined in plugins/lib/xxx2wav.h */
-#define MALLOC_BUFSIZE (512*1024)
-#define GUARD_BUFSIZE  (32*1024)
+#define MALLOC_BUFSIZE (130*1024)
+#define GUARD_BUFSIZE  (8*1024)
 
 /* As defined in plugin.lds */
 #define CODEC_IRAM_ORIGIN   0x1000c000
@@ -132,7 +132,7 @@
 /* Voice codec thread. */
 static struct event_queue voice_codec_queue;
 /* Not enough IRAM for this. */
-static long voice_codec_stack[(DEFAULT_STACK_SIZE + 0x2000)/sizeof(long)] IBSS_ATTR;
+static long voice_codec_stack[(DEFAULT_STACK_SIZE + 0x2000)/sizeof(long)];
 static const char voice_codec_thread_name[] = "voice codec";
 
 static struct mutex mutex_bufferfill;
@@ -2462,7 +2462,8 @@
     /* Buffer has to be at least 2s long. */
     seconds += 2;
     logf("buf len: %d", seconds);
-    size = seconds * (NATIVE_FREQUENCY*4);
+    /* size = seconds * (NATIVE_FREQUENCY*4); */
+    size = NATIVE_FREQUENCY*2;
     if (pcmbuf_get_bufsize() == size)
         return ;
 
</pre></body></html>