The Adam EOS has _very_ flexible routines to handle sound playback, that were borrowed from the ColecoVision OS7 ROM, that seem to become _VERY_ unstable when attached using add_raster_int(), causing display corruption and/or code crashes.
lib:
https://github.com/tschak909/smartkeyslib
example test program:
https://github.com/tschak909/smartkeysl ... eys-sounds (binary attached)
The smartkeys_sound_play() code that is attached to add_raster_int:
Code: Select all
static void nmi_play(void)
{
M_PRESERVE_MAIN;
M_PRESERVE_INDEX;
eos_play_sound();
M_RESTORE_INDEX;
M_RESTORE_MAIN;
}
https://github.com/tschak909/eoslib/blo ... ay_sound.c
Am I just doing something silly?
-Thom