comparison vgmplay.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 140af5509ce7
children 2c1679058727
comparison
equal deleted inserted replaced
504:7b0df1aaf384 505:b7b7a1cab44a
1 /* 1 /*
2 Copyright 2013 Michael Pavone 2 Copyright 2013 Michael Pavone
3 This file is part of BlastEm. 3 This file is part of BlastEm.
4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text. 4 BlastEm is free software distributed under the terms of the GNU General Public License version 3 or greater. See COPYING for full license text.
5 */ 5 */
6 #include "render.h" 6 #include "render.h"
7 #include "ym2612.h" 7 #include "ym2612.h"
8 #include "psg.h" 8 #include "psg.h"
88 88
89 void handle_joy_dpad(int joystick, int dpadnum, uint8_t value) 89 void handle_joy_dpad(int joystick, int dpadnum, uint8_t value)
90 { 90 {
91 } 91 }
92 92
93 uint8_t headless = 0;
94
93 #define CYCLE_LIMIT MCLKS_NTSC/60 95 #define CYCLE_LIMIT MCLKS_NTSC/60
94 tern_node * config; 96 tern_node * config;
95 97
96 void wait(ym2612_context * y_context, psg_context * p_context, uint32_t * current_cycle, uint32_t cycles) 98 void wait(ym2612_context * y_context, psg_context * p_context, uint32_t * current_cycle, uint32_t cycles)
97 { 99 {
109 111
110 int main(int argc, char ** argv) 112 int main(int argc, char ** argv)
111 { 113 {
112 uint32_t fps = 60; 114 uint32_t fps = 60;
113 config = load_config(argv[0]); 115 config = load_config(argv[0]);
114 render_init(320, 240, "vgm play", 60, 0); 116 render_init(320, 240, "vgm play", 60, 0, 0);
115 117
116 118
117 ym2612_context y_context; 119 ym2612_context y_context;
118 ym_init(&y_context, render_sample_rate(), MCLKS_NTSC, MCLKS_PER_YM, render_audio_buffer(), 0); 120 ym_init(&y_context, render_sample_rate(), MCLKS_NTSC, MCLKS_PER_YM, render_audio_buffer(), 0);
119 121