diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-11-04 22:48:27 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-11-04 22:48:27 -0800 |
commit | 3324456c65b747ab56158e9c7683be302761ed7a (patch) | |
tree | a135a98bb14a76d2507108e2ceb248401b41e44f /ym2612.c | |
parent | e26893e5625ceffa1214024ed3191b155d56de6f (diff) |
Load config file and rom.db from appropriate locations on Android
Diffstat (limited to 'ym2612.c')
-rw-r--r-- | ym2612.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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"); |