19 #ifndef OPENXCOM_SOUND_H
20 #define OPENXCOM_SOUND_H
22 #include <SDL_mixer.h>
42 void load(
const std::string &filename);
44 void load(
const void *data,
unsigned int size);
46 void play(
int channel = -1)
const;
void load(const std::string &filename)
Loads sound from the specified file.
Definition: Sound.cpp:48
static void stop()
Stops all sounds.
Definition: Sound.cpp:92
Container for sound effects.
Definition: Sound.h:32
Sound()
Creates a blank sound effect.
Definition: Sound.cpp:32
~Sound()
Cleans up the sound effect.
Definition: Sound.cpp:39
void play(int channel=-1) const
Plays the sound.
Definition: Sound.cpp:81