CD-DA BGM playback support with SDL_mixer

This adds -playlist command line option to specify a "playlist" file
which lists music files to be played instead of CD audio tracks.
The format of playlist file is the same as xsystem35's.
This commit is contained in:
kichikuou
2020-02-15 17:27:37 +09:00
parent 51b65c84af
commit 487bd49745
7 changed files with 72 additions and 96 deletions
+2 -7
View File
@@ -16,7 +16,7 @@ extern SDL_Window* g_window;
// 初期化
NACT::NACT(const char* game_id, const char* font_file)
NACT::NACT(const char* game_id, const char* font_file, const char* playlist)
{
mouse_x = mouse_y = 0;
@@ -114,7 +114,7 @@ NACT::NACT(const char* game_id, const char* font_file)
// 各種クラス生成
ags = new AGS(this, font_file);
mako = new MAKO(this);
mako = new MAKO(this, playlist);
#ifdef USE_JOY
// 入力初期化
@@ -409,11 +409,6 @@ int NACT::get_screen_height()
return ags->screen_height;
}
void NACT::notify_mci(int status)
{
mako->notify_mci(status);
}
void NACT::select_cursor()
{
ags->select_cursor();