diff ym2612.c @ 2302:0343f0d5add0

Fix libretro build for real
author Michael Pavone <pavone@retrodev.com>
date Sun, 12 Mar 2023 20:03:35 -0700
parents 8a918eb95ba8
children 9fb04d29049e
line wrap: on
line diff
--- a/ym2612.c	Thu Mar 09 23:10:41 2023 -0800
+++ b/ym2612.c	Sun Mar 12 20:03:35 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
 }