mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-16 09:21:12 +00:00
b23424485a
Since the decoder cannot handle sound, there's two options: 1: Use the same sounds as the video it replaces. 2: If an identifiable streamable sound with the same base name is found, it will be played along with the video. Fixes #133
21 lines
622 B
C++
21 lines
622 B
C++
#pragma once
|
|
|
|
#include "zstring.h"
|
|
#include "tarray.h"
|
|
#include "name.h"
|
|
|
|
typedef TMap<FName, FName> MusicAliasMap;
|
|
extern MusicAliasMap MusicAliases;
|
|
|
|
// Totally minimalistic interface - should be all the game modules need.
|
|
void Mus_InitMusic();
|
|
void Mus_UpdateMusic();
|
|
int Mus_Play(const char *mapname, const char *fn, bool loop);
|
|
void Mus_Stop();
|
|
bool Mus_IsPlaying();
|
|
void Mus_SetPaused(bool on);
|
|
void Mus_ResumeSaved();
|
|
FString G_SetupFilenameBasedMusic(const char* fileName, const char *defaultfn);
|
|
class FSerializer;
|
|
void Mus_Serialize(FSerializer& arc);
|
|
int LookupMusic(const char* fn, bool onlyextended = false);
|