/* * start_sample * * Call the IO interface to play a sample. * */ static void start_sample (int number, int volume, int repeats, zword eos) { static zbyte lh_repeats[] = { 0x00, 0x00, 0x00, 0x01, 0xff, 0x00, 0x01, 0x01, 0x01, 0x01, 0xff, 0x01, 0x01, 0xff, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff }; if (story_id == LURKING_HORROR) repeats = lh_repeats[number]; os_start_sample (number, volume, repeats, eos); playing = TRUE; }/* start_sample */
void GlkInterface::start_sample(int number, int volume, int repeats, zword eos) { static zbyte LURKING_REPEATS[] = { 0x00, 0x00, 0x00, 0x01, 0xff, 0x00, 0x01, 0x01, 0x01, 0x01, 0xff, 0x01, 0x01, 0xff, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff }; if (_storyId == LURKING_HORROR) repeats = LURKING_REPEATS[number]; os_start_sample(number, volume, repeats, eos); _soundPlaying = true; }