diff options
author | Bad Diode <bd@badd10de.dev> | 2023-08-30 20:02:52 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2023-08-30 20:02:52 +0200 |
commit | 0c8f3c2f28a31ed5b254ca62d32cb2565c47f8dd (patch) | |
tree | e27421f4d79b74f472765668f8b8e5d798203377 /src | |
parent | 3d4cacc3ce77bc027c641dda5270aaaeb088048f (diff) | |
download | uxngba-0c8f3c2f28a31ed5b254ca62d32cb2565c47f8dd.tar.gz uxngba-0c8f3c2f28a31ed5b254ca62d32cb2565c47f8dd.zip |
Reenable sound
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -387,22 +387,18 @@ main(void) { | |||
387 | init_uxn(); | 387 | init_uxn(); |
388 | 388 | ||
389 | // Enable sound. | 389 | // Enable sound. |
390 | // init_sound(); | 390 | init_sound(); |
391 | 391 | ||
392 | // Main loop. | 392 | // Main loop. |
393 | u8 frame_counter = 0; | 393 | u8 frame_counter = 0; |
394 | PROF(uxn_eval_asm(PAGE_PROGRAM), eval_cycles); | 394 | PROF(uxn_eval_asm(PAGE_PROGRAM), eval_cycles); |
395 | while(true) { | 395 | while(true) { |
396 | txt_position(0, 0); | 396 | txt_position(0, 0); |
397 | // print_debug_info(SHOW_DEV1); | ||
398 | // print_debug_info(SHOW_DEV2); | ||
399 | // print_debug_info(SHOW_ZP); | ||
400 | // print_debug_info(0); | ||
401 | bios_vblank_wait(); | 397 | bios_vblank_wait(); |
402 | FRAME_START(); | 398 | FRAME_START(); |
403 | PROF(handle_input(), input_cycles); | 399 | PROF(handle_input(), input_cycles); |
404 | PROF(uxn_eval_asm(PEEK2(&device_data[0x20])), eval_cycles); | 400 | PROF(uxn_eval_asm(PEEK2(&device_data[0x20])), eval_cycles); |
405 | // PROF(sound_mix(), mix_cycles); | 401 | PROF(sound_mix(), mix_cycles); |
406 | // TODO: allow configuration to do VSYNC at 15 or 30 fps to avoid too | 402 | // TODO: allow configuration to do VSYNC at 15 or 30 fps to avoid too |
407 | // much memory copying on demanding uxn roms. | 403 | // much memory copying on demanding uxn roms. |
408 | PROF_SHOW(); | 404 | PROF_SHOW(); |