19 #ifndef OPENXCOM_ADLIBMUSIC_H
20 #define OPENXCOM_ADLIBMUSIC_H
25 #include <SDL_mixer.h>
40 static int delay, rate;
41 static std::map<int, int> delayRates;
48 void load(
const std::string &filename);
50 void load(
const void *data,
int size);
52 void play(
int loop = -1)
const;
54 static void player(
void *udata, Uint8 *stream,
int len);
Container for music tracks.
Definition: Music.h:32
void load(const std::string &filename)
Loads music from the specified file.
Definition: AdlibMusic.cpp:89
~AdlibMusic()
Cleans up the music track.
Definition: AdlibMusic.cpp:69
static void player(void *udata, Uint8 *stream, int len)
Adlib music player.
Definition: AdlibMusic.cpp:139
AdlibMusic(float volume=1.0f)
Creates a blank music track.
Definition: AdlibMusic.cpp:42
void play(int loop=-1) const
Plays the music.
Definition: AdlibMusic.cpp:120
Container for Adlib music tracks.
Definition: AdlibMusic.h:34