2020-12-21 16:22:49 +00:00
|
|
|
#pragma codeseg SHARED
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
#include "platform.h"
|
2021-02-07 20:03:00 +00:00
|
|
|
#include "x86real.h"
|
2020-12-21 16:22:49 +00:00
|
|
|
#include "libs/kaja/kaja.h"
|
|
|
|
#include "th02/hardware/frmdelay.h"
|
|
|
|
#include "th02/snd/snd.h"
|
2020-12-29 20:05:57 +00:00
|
|
|
#include "th02/snd/measure.hpp"
|
2020-12-21 16:22:49 +00:00
|
|
|
|
|
|
|
void snd_delay_until_measure(int measure)
|
|
|
|
{
|
|
|
|
if(!snd_active) {
|
|
|
|
frame_delay(100);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
do {
|
|
|
|
frame_delay(1);
|
2020-12-29 20:05:57 +00:00
|
|
|
} while(snd_get_song_measure() < measure);
|
2020-12-21 16:22:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|