summaryrefslogtreecommitdiff
path: root/psg.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 /psg.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 'psg.c')
-rw-r--r--psg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/psg.c b/psg.c
index 6ea47f9..cb5e8ce 100644
--- a/psg.c
+++ b/psg.c
@@ -5,6 +5,7 @@
*/
#include "psg.h"
#include "render.h"
+#include "blastem.h"
#include <string.h>
#include <stdlib.h>
@@ -118,7 +119,9 @@ void psg_run(psg_context * context, uint32_t cycles)
}
context->audio_buffer[context->buffer_pos++] = acc;
if (context->buffer_pos == context->samples_frame) {
- render_wait_psg(context);
+ if (!headless) {
+ render_wait_psg(context);
+ }
}
}
context->cycles += context->clock_inc;