summaryrefslogtreecommitdiff
path: root/apps/plugins/mikmod/mikmod_supp.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/mikmod/mikmod_supp.h')
-rw-r--r--apps/plugins/mikmod/mikmod_supp.h23
1 files changed, 22 insertions, 1 deletions
diff --git a/apps/plugins/mikmod/mikmod_supp.h b/apps/plugins/mikmod/mikmod_supp.h
index 29fa7ebf35..ad8aaafebc 100644
--- a/apps/plugins/mikmod/mikmod_supp.h
+++ b/apps/plugins/mikmod/mikmod_supp.h
@@ -63,8 +63,29 @@ int mmsupp_sprintf(char *buf, const char *fmt, ... );
63 63
64extern const struct plugin_api * rb; 64extern const struct plugin_api * rb;
65 65
66#ifdef SIMULATOR
66 67
67#define SAMPLE_RATE SAMPR_44 /* 44100 */ 68#define SAMPLE_RATE SAMPR_44 /* Required by Simulator */
69
70#elif ((CONFIG_PLATFORM & PLATFORM_HOSTED) || defined(CPU_MIPS))
71
72#define SAMPLE_RATE SAMPR_44 /* All MIPS and hosted targets are fast */
73
74#elif defined(CPU_ARM)
75
76/* Treat ARMv5+ as fast */
77#if (ARM_ARCH >= 5)
78#define SAMPLE_RATE SAMPR_44
79#else
80#define SAMPLE_RATE SAMPR_MIN_GE_22
81#endif
82
83#else /* !CPU_ARM */
84
85/* Treat everyone else as slow */
86#define SAMPLE_RATE HW_SAMPR_MIN_GE_22
87
88#endif /* !SIMULATOR */
68 89
69#define BUF_SIZE 4096*8 90#define BUF_SIZE 4096*8
70#define NBUF 2 91#define NBUF 2