diff psg.c @ 505:b7b7a1cab44a

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.
author Michael Pavone <pavone@retrodev.com>
date Mon, 06 Jan 2014 22:54:05 -0800
parents 3e1573fa22cf
children 6a14c5a95648
line wrap: on
line diff
--- a/psg.c	Thu Oct 31 01:00:32 2013 -0700
+++ b/psg.c	Mon Jan 06 22:54:05 2014 -0800
@@ -5,6 +5,7 @@
 */
 #include "psg.h"
 #include "render.h"
+#include "blastem.h"
 #include <string.h>
 #include <stdlib.h>
 
@@ -118,7 +119,9 @@
 			}
 			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;