21 #ifndef HX3D_AUDIO_MUSIC 22 #define HX3D_AUDIO_MUSIC 24 #include <SDL2/SDL_mixer.h> 26 #include "hx3d/utils/file.hpp" 51 explicit Music(
const std::string pathToFile);
void stop()
Stop the music.
void initialize(const std::string pathToFile)
Initialize a music with a path.
bool isPlaying()
Test if the music is playing.
Music()
Create an uninitialized music.
void play()
Play the music.
std::shared_ptr< T > Ptr
Quick-typing shared ptr.