Files
kichikuou_system3-sdl2/src/config.h
T
kichikuou 41e69d7610 Real-time MIDI playback using RtMidi
Before this, MIDI playback was done by generating an SMF data stream,
which was then played using platform-specific methods (MCI on Windows,
MediaPlayer on Android, SDL_Mixer on other platforms). However, this
approach had an issue where the Y18 command (which reads loop counts and
markers) did not work correctly.

With this change, the MAKOMidi class now uses the RtMidi library to
control MIDI devices in real-time. This approach was used in the
original "System3 for win32", but has now been made cross-platform.

The dependency on RtMidi is optional. If RtMidi is not available at
build time or a MIDI device is unavailable at runtime, FM synthesis will
be used.
2024-08-16 10:11:41 +09:00

42 lines
714 B
C++

#ifndef CONFIG_H_
#define CONFIG_H_
#include <string>
class Encoding;
struct Strings {
std::string back;
std::string next_page;
std::string dps_custom;
std::string dps_linus;
std::string dps_katsumi;
std::string dps_yumiko;
std::string dps_itsumi;
std::string dps_hitomi;
std::string dps_mariko;
};
struct Config {
public:
Config(int argc, char *argv[]);
Strings get_strings(Encoding* encoding, bool english) const;
std::string font_file;
std::string game_id;
std::string encoding;
std::string save_dir;
std::string playlist;
std::string title;
bool use_fm = false;
bool no_antialias = false;
bool scanline = false;
private:
void load_ini();
Strings strings;
};
#endif // CONFIG_H_