summaryrefslogtreecommitdiff
path: root/ym2612.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-01-06 22:54:05 -0800
committerMichael Pavone <pavone@retrodev.com>2014-01-06 22:54:05 -0800
commite6825f6403036a874216d58fe1ac3989898e61f3 (patch)
treefcf3d642f85e1e19259a05fa2f5a06bc695d9522 /ym2612.c
parent9507839714b1e5a1a0a8487c8cdb10d69c5de6bc (diff)
The local clone on my laptop got messed up and some changes had not been pushed. This commit represents the status of the working copy from that clone. It unfortunately contains some changes that I did not intend to commit yet, but this seems like the best option at the moment.
Diffstat (limited to 'ym2612.c')
-rw-r--r--ym2612.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ym2612.c b/ym2612.c
index 2f7862d..e56e7e7 100644
--- a/ym2612.c
+++ b/ym2612.c
@@ -10,6 +10,7 @@
#include "ym2612.h"
#include "render.h"
#include "wave.h"
+#include "blastem.h"
//#define DO_DEBUG_PRINT
#ifdef DO_DEBUG_PRINT
@@ -482,7 +483,9 @@ void ym_run(ym2612_context * context, uint32_t to_cycle)
}
context->buffer_pos += 2;
if (context->buffer_pos == context->sample_limit) {
- render_wait_ym(context);
+ if (!headless) {
+ render_wait_ym(context);
+ }
}
}
}