diff options
author | Björn Stenberg <bjorn@haxx.se> | 2009-01-10 21:10:56 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2009-01-10 21:10:56 +0000 |
commit | 6427d127aaedcf7f68f7ad7438c5ffb284b8c9aa (patch) | |
tree | 838ba17c13ab4f2ee3333ea38f3e79604490069d /apps/pcmbuf.h | |
parent | 12b8f8de892920a99d9740f2e26fa7c4811de5b6 (diff) |
Calculate watermark from bitrate and harddisk spinup time.
Use a smaller PCM buffer on targets with 2MB or less ram.
(FS#9703)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19743 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/pcmbuf.h')
-rw-r--r-- | apps/pcmbuf.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/pcmbuf.h b/apps/pcmbuf.h index 8c448884f9..b4e551f74d 100644 --- a/apps/pcmbuf.h +++ b/apps/pcmbuf.h @@ -21,18 +21,12 @@ #ifndef PCMBUF_H #define PCMBUF_H -#if MEM > 1 #define PCMBUF_TARGET_CHUNK 32768 /* This is the target fill size of chunks on the pcm buffer */ #define PCMBUF_MINAVG_CHUNK 24576 /* This is the minimum average size of chunks on the pcm buffer (or we run out of buffer descriptors, which is non-fatal) */ -#else -#define PCMBUF_TARGET_CHUNK 16384 -#define PCMBUF_MINAVG_CHUNK 12288 -#endif - #define PCMBUF_MIN_CHUNK 4096 /* We try to never feed a chunk smaller than this to the DMA */ #define PCMBUF_MIX_CHUNK 8192 /* This is the maximum size of one packet |