summaryrefslogtreecommitdiff
path: root/psg.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-10-31 13:24:39 -0700
committerMichael Pavone <pavone@retrodev.com>2015-10-31 13:24:39 -0700
commit8ae568bd4afc5d9ce5a3a6e8fe98b0bfa30b4130 (patch)
treea2216ede87f18d309d12ea202b1074b6121e28a9 /psg.c
parent500159f495096fe4124f1d65cf258fb60c2673a5 (diff)
Remove some debug junk from the PSG core
Diffstat (limited to 'psg.c')
-rw-r--r--psg.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/psg.c b/psg.c
index e203da2..33484ad 100644
--- a/psg.c
+++ b/psg.c
@@ -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 @@ 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);
}