Implement MAKO::get_mark() for FM sound

It still does not work for MIDI.
This commit is contained in:
kichikuou
2021-09-18 21:05:38 +09:00
parent da91f10779
commit bc3580e4ef
7 changed files with 37 additions and 10 deletions
+8 -3
View File
@@ -158,9 +158,14 @@ bool MAKO::check_music()
void MAKO::get_mark(int* mark, int* loop)
{
// TODO: fix
*mark = 0;
*loop = 0;
SDL_LockMutex(fm_mutex);
if (fm) {
fm->get_mark(mark, loop);
} else {
*mark = 0;
*loop = 0;
}
SDL_UnlockMutex(fm_mutex);
}
void MAKO::play_pcm(int page, bool loop)