ReC98/th02/snd/delaymea.c

18 lines
301 B
C
Raw Normal View History

void snd_delay_until_measure(int measure)
{
if(!snd_active) {
frame_delay_2(100);
return;
}
do {
frame_delay_2(1);
_AH = KAJA_GET_SONG_MEASURE;
if(snd_midi_active != 1) {
geninterrupt(PMD);
} else {
_DX = 192;
geninterrupt(MMD);
}
} while(_AX < measure);
}