changeset 843:715475788e93

Remove some debug junk from the PSG core
author Michael Pavone <pavone@retrodev.com>
date Sat, 31 Oct 2015 13:24:39 -0700
parents ba93a3941300
children 74e161fe7d39
files psg.c
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/psg.c	Sat Oct 31 01:07:56 2015 -0700
+++ b/psg.c	Sat Oct 31 13:24:39 2015 -0700
@@ -10,8 +10,6 @@
 #include <stdlib.h>
 #include <stdio.h>
 
-FILE *blah;
-
 void psg_init(psg_context * context, uint32_t sample_rate, uint32_t master_clock, uint32_t clock_div, uint32_t samples_frame)
 {
 	memset(context, 0, sizeof(*context));
@@ -24,7 +22,6 @@
 	for (int i = 0; i < 4; i++) {
 		context->volume[i] = 0xF;
 	}
-	blah = fopen("psg.raw", "wb");
 }
 
 #define BUFFER_INC_RES 1000000000UL
@@ -127,7 +124,6 @@
 			context->audio_buffer[context->buffer_pos++] = context->accum / context->sample_count;
 			context->accum = context->sample_count = 0;
 			if (context->buffer_pos == context->samples_frame) {
-				fwrite(context->audio_buffer, 1, context->buffer_pos, blah);
 				if (!headless) {
 					render_wait_psg(context);
 				}