comparison vgmplay.c @ 799:0b692b5d154b

Merge
author Michael Pavone <pavone@retrodev.com>
date Sun, 26 Jul 2015 13:25:31 -0700
parents 9aff36a172b2
children 3eced113081c
comparison
equal deleted inserted replaced
798:062a2199daf6 799:0b692b5d154b
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"
9 #include "config.h" 9 #include "config.h"
10 #include "util.h"
10 #include <stdint.h> 11 #include <stdint.h>
11 #include <stdio.h> 12 #include <stdio.h>
12 13
13 #define MCLKS_NTSC 53693175 14 #define MCLKS_NTSC 53693175
14 #define MCLKS_PAL 53203395 15 #define MCLKS_PAL 53203395
280 { 281 {
281 wait_time *= mclks_sample; 282 wait_time *= mclks_sample;
282 wait(&y_context, &p_context, &current_cycle, wait_time); 283 wait(&y_context, &p_context, &current_cycle, wait_time);
283 } 284 }
284 } else { 285 } else {
285 printf("unimplemented command: %X at offset %X\n", cmd, (unsigned int)(cur - data - 1)); 286 fatal_error("unimplemented command: %X at offset %X\n", cmd, (unsigned int)(cur - data - 1));
286 exit(1);
287 } 287 }
288 } 288 }
289 } 289 }
290 return 0; 290 return 0;
291 } 291 }