19 #ifndef OPENXCOM_MUSIC_H
20 #define OPENXCOM_MUSIC_H
23 #include <SDL_mixer.h>
42 virtual void load(
const std::string &filename);
44 virtual void load(
const void *data,
int size);
46 virtual void play(
int loop = -1)
const;
virtual ~Music()
Cleans up the music track.
Definition: Music.cpp:40
Container for music tracks.
Definition: Music.h:32
static void pause()
Pauses all music.
Definition: Music.cpp:121
virtual void load(const std::string &filename)
Loads music from the specified file.
Definition: Music.cpp:52
virtual void play(int loop=-1) const
Plays the music.
Definition: Music.cpp:89
static void stop()
Stops all music.
Definition: Music.cpp:106
static void resume()
Resumes all music.
Definition: Music.cpp:136
Music()
Creates a blank music track.
Definition: Music.cpp:33