summaryrefslogtreecommitdiff
path: root/ym2612.c
diff options
context:
space:
mode:
Diffstat (limited to 'ym2612.c')
-rw-r--r--ym2612.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ym2612.c b/ym2612.c
index 45da6fe..60da9de 100644
--- a/ym2612.c
+++ b/ym2612.c
@@ -118,6 +118,10 @@ void ym_adjust_master_clock(ym2612_context * context, uint32_t master_clock)
context->buffer_inc = ((BUFFER_INC_RES * (uint64_t)context->sample_rate) / (uint64_t)master_clock) * (uint64_t)context->clock_inc;
}
+#ifdef __ANDROID__
+#define log2(x) (log(x)/log(2))
+#endif
+
void ym_init(ym2612_context * context, uint32_t sample_rate, uint32_t master_clock, uint32_t clock_div, uint32_t sample_limit, uint32_t options)
{
dfopen(debug_file, "ym_debug.txt", "w");