From 3324456c65b747ab56158e9c7683be302761ed7a Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Wed, 4 Nov 2015 22:48:27 -0800 Subject: Load config file and rom.db from appropriate locations on Android --- ym2612.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ym2612.c') 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"); -- cgit v1.2.3