summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/pdbox.h
diff options
context:
space:
mode:
authorWincent Balin <wincent@rockbox.org>2010-06-01 20:37:16 +0000
committerWincent Balin <wincent@rockbox.org>2010-06-01 20:37:16 +0000
commitf52c9aae3a04ae4c767c2da1d788421686805fea (patch)
tree2050e9bcdb6797c16f4acbd2567686a07dab9e1b /apps/plugins/pdbox/pdbox.h
parent279969618d28e23ac83b6e81c7b7bbf1adaf5b74 (diff)
downloadrockbox-f52c9aae3a04ae4c767c2da1d788421686805fea.tar.gz
rockbox-f52c9aae3a04ae4c767c2da1d788421686805fea.zip
pdbox: Code cleanup, optimizations.
* Reverted minimal working memory to 4 MB * Reverted size of a single audio buffer * Optimized sound output loop git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26454 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox/pdbox.h')
-rw-r--r--apps/plugins/pdbox/pdbox.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/pdbox/pdbox.h b/apps/plugins/pdbox/pdbox.h
index 1416990f5e..a5dadbc938 100644
--- a/apps/plugins/pdbox/pdbox.h
+++ b/apps/plugins/pdbox/pdbox.h
@@ -32,7 +32,7 @@
32#include "PDa/src/m_pd.h" 32#include "PDa/src/m_pd.h"
33 33
34/* Minimal memory size. */ 34/* Minimal memory size. */
35#define MIN_MEM_SIZE (2 * 1024 * 1024) 35#define MIN_MEM_SIZE (4 * 1024 * 1024)
36 36
37/* Memory prototypes. */ 37/* Memory prototypes. */
38 38
@@ -49,7 +49,11 @@
49#define PD_OUT_CHANNELS 2 49#define PD_OUT_CHANNELS 2
50 50
51/* Audio buffer part. Contains data for one HZ period. */ 51/* Audio buffer part. Contains data for one HZ period. */
52#ifdef SIMULATOR
53#define AUDIOBUFSIZE (PD_SAMPLES_PER_HZ * PD_OUT_CHANNELS * 16)
54#else
52#define AUDIOBUFSIZE (PD_SAMPLES_PER_HZ * PD_OUT_CHANNELS) 55#define AUDIOBUFSIZE (PD_SAMPLES_PER_HZ * PD_OUT_CHANNELS)
56#endif
53struct audio_buffer 57struct audio_buffer
54{ 58{
55 int16_t data[AUDIOBUFSIZE]; 59 int16_t data[AUDIOBUFSIZE];