2019-11-10 22:58:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-01-27 19:53:41 +00:00
|
|
|
#include "zstring.h"
|
2020-04-12 06:07:48 +00:00
|
|
|
#include "tarray.h"
|
|
|
|
#include "name.h"
|
2020-01-27 19:53:41 +00:00
|
|
|
|
2020-04-12 06:07:48 +00:00
|
|
|
typedef TMap<FName, FName> MusicAliasMap;
|
|
|
|
extern MusicAliasMap MusicAliases;
|
2021-04-08 14:35:26 +00:00
|
|
|
extern TArray<FString> specialmusic;
|
2019-11-10 22:58:51 +00:00
|
|
|
|
2020-04-12 06:07:48 +00:00
|
|
|
// Totally minimalistic interface - should be all the game modules need.
|
|
|
|
void Mus_InitMusic();
|
|
|
|
void Mus_UpdateMusic();
|
2019-11-11 23:43:07 +00:00
|
|
|
int Mus_Play(const char *mapname, const char *fn, bool loop);
|
2019-11-10 22:58:51 +00:00
|
|
|
void Mus_Stop();
|
2019-12-26 12:04:29 +00:00
|
|
|
bool Mus_IsPlaying();
|
2019-11-10 22:58:51 +00:00
|
|
|
void Mus_SetPaused(bool on);
|
2019-12-26 12:04:29 +00:00
|
|
|
void Mus_ResumeSaved();
|
2020-01-27 19:53:41 +00:00
|
|
|
FString G_SetupFilenameBasedMusic(const char* fileName, const char *defaultfn);
|
2020-02-23 13:03:03 +00:00
|
|
|
class FSerializer;
|
|
|
|
void Mus_Serialize(FSerializer& arc);
|
2020-09-05 09:58:19 +00:00
|
|
|
int LookupMusic(const char* fn, bool onlyextended = false);
|