Mercurial > repos > blastem
diff ym2612.c @ 2305:6aca1734d573
Merge
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 15 Mar 2023 19:28:11 -0700 |
parents | 0343f0d5add0 |
children |
line wrap: on
line diff
--- a/ym2612.c Wed Mar 15 18:50:24 2023 -0700 +++ b/ym2612.c Wed Mar 15 19:28:11 2023 -0700 @@ -635,9 +635,11 @@ if (context->channels[i].logfile) { fwrite(&value, sizeof(value), 1, context->channels[i].logfile); } +#ifndef IS_LIB if (context->scope) { scope_add_sample(context->scope, context->channels[i].scope_channel, value, context->channels[i].phase_overflow); } +#endif if (context->channels[i].lr & 0x80) { left += (value * context->volume_mult) / context->volume_div; } else if (context->zero_offset) { @@ -1400,6 +1402,7 @@ void ym_enable_scope(ym2612_context *context, oscilloscope *scope, uint32_t master_clock) { +#ifndef IS_LIB static const char *names[] = { "YM2612 #1", "YM2612 #2", @@ -1413,4 +1416,5 @@ { context->channels[i].scope_channel = scope_add_channel(scope, names[i], master_clock / (context->clock_inc * NUM_OPERATORS)); } +#endif }