# HG changeset patch # User Michael Pavone # Date 1446323079 25200 # Node ID 715475788e93e17335c09240574c71b1f90c33b3 # Parent ba93a39413008329a1f081bc0ba13f39bc01a780 Remove some debug junk from the PSG core diff -r ba93a3941300 -r 715475788e93 psg.c --- 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 #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 @@ 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); }