19 std::string path =
fatBasePath +
"music/" + filename +
".qoa";
20 ae::q20_12_t loopStartTime =
getLoopStart(type, audioId);
21 ae::q20_12_t loopEndTime =
getLoopEnd(type, audioId);
23 am.registerAudio(path, loopStartTime, loopEndTime);
ae::q20_12_t getLoopStart(AudioType type, int id)
Get the loop start time.
ae::q20_12_t getLoopEnd(AudioType type, int id)
Get the loop end time.
std::string getAudioFilepath(AudioType type, int id)
Get the audio file path.
void registerMusic(AudioType type, AudioID audioId)
Wrapper to set up the music to play.
void destroy() override
Automatically deregisters the currently registered music, if any.
void playMusic()
Play the registered song if currently paused.
void pauseMusic()
Pause the registered song if currently playing.
void stopMusic()
Deregister the currently registered music.
Holds global variables used game-wide.
void logMessage(LogSeverity severity, std::string_view message, std::source_location location)
Logs a diagnostic message and halts only for fatal messages.
Util to handle error logging.