#include <ctype.h>
#include "audio.h"
#include "midasdll.h"
+#include "util.h"
#define SET_MUS_VOL(vol) \
do { \
{
return ticks * tick_interval;
}
+
+void sleep_msec(unsigned long msec)
+{
+ unsigned long wakeup_time = ticks + msec / tick_interval;
+ while(ticks < wakeup_time) {
+#ifdef USE_HLT
+ halt();
+#endif
+ }
+}