diff --git a/examples/cx16/zsound/SHORYUKEN.ZCM b/examples/cx16/zsound/SHORYUKEN.ZCM deleted file mode 100644 index 3cbee7a4b..000000000 Binary files a/examples/cx16/zsound/SHORYUKEN.ZCM and /dev/null differ diff --git a/examples/cx16/zsound/TERMINATOR2.ZCM b/examples/cx16/zsound/TERMINATOR2.ZCM new file mode 100644 index 000000000..9a2f6a1e1 Binary files /dev/null and b/examples/cx16/zsound/TERMINATOR2.ZCM differ diff --git a/examples/cx16/zsound/play-pcm.p8 b/examples/cx16/zsound/play-pcm.p8 index 2d2bd5e88..ff9836ddd 100644 --- a/examples/cx16/zsound/play-pcm.p8 +++ b/examples/cx16/zsound/play-pcm.p8 @@ -1,5 +1,6 @@ %import textio %import cx16diskio +%import palette %zeropage basicsafe %zpreserved $22,$26 ; zsound lib uses this region @@ -29,10 +30,12 @@ zsound_lib: sub start() { txt.print("zsound pcm digi demo program!\n") - if not cx16diskio.load_raw(8, "shoryuken.zcm", digi_bank, digi_address) { - txt.print("?can't load digi\n") + c64.SETMSG(%10000000) ; enable kernal status messages for load + if not cx16diskio.load_raw(8, "terminator2.zcm", digi_bank, digi_address) { + txt.print("?can't load\n") return } + c64.SETMSG(0) cx16.rambank(digi_bank) ; initialize header pointer of the zcm to point to actual sample data @@ -40,11 +43,19 @@ zsound_lib: pokew(digi_address, digi_address+zcm_DIGITAB_size) pcm_init() - txt.print("playing digi! hit enter to stop.\n") + txt.print("\nplaying digi! hit enter to stop.\n") pcm_trigger_digi(digi_bank, digi_address) while cx16.joystick_get2(0)==$ffff { sys.waitvsync() + repeat 1000 { + ; artificially delay calling the play routine so we can see its raster time + %asm {{ + nop + }} + } + palette.set_color(0, $0c5) pcm_play() + palette.set_color(0, $000) } pcm_stop() } diff --git a/examples/cx16/zsound/play-zsm.p8 b/examples/cx16/zsound/play-zsm.p8 index a7d9161c2..44945683f 100644 --- a/examples/cx16/zsound/play-zsm.p8 +++ b/examples/cx16/zsound/play-zsm.p8 @@ -1,5 +1,6 @@ %import textio %import cx16diskio +%import palette %zeropage basicsafe %zpreserved $22,$28 ; zsound lib uses this region @@ -58,7 +59,15 @@ zsound_lib: ; for IRQ based playback instead: cx16.set_irq(&zsm_playIRQ, true) while cx16.joystick_get2(0)==$ffff { sys.waitvsync() + repeat 800 { + ; artificially delay calling the play routine so we can see its raster time + %asm {{ + nop + }} + } + palette.set_color(0, $0c5) zsm_play() + palette.set_color(0, $000) } zsm_stop() } else {