From 8ae568bd4afc5d9ce5a3a6e8fe98b0bfa30b4130 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Sat, 31 Oct 2015 13:24:39 -0700 Subject: Remove some debug junk from the PSG core --- psg.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'psg.c') diff --git a/psg.c b/psg.c index e203da2..33484ad 100644 --- a/psg.c +++ b/psg.c @@ -10,8 +10,6 @@ #include #include -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 @@ void psg_init(psg_context * context, uint32_t sample_rate, uint32_t master_clock 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 @@ void psg_run(psg_context * context, uint32_t cycles) 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); } -- cgit v1.2.3