hx3d  1
2D/3D Simple Game Framework
Public Member Functions | List of all members
hx3d::audio::Music Class Reference

Single music management. More...

#include <music.hpp>

Public Member Functions

 Music ()
 Create an uninitialized music. More...
 
 Music (const std::string pathToFile)
 Load a music from a path. More...
 
void initialize (const std::string pathToFile)
 Initialize a music with a path. More...
 
void play ()
 Play the music.
 
void stop ()
 Stop the music.
 
bool isPlaying ()
 Test if the music is playing.
 

Detailed Description

Single music management.

Permit to play/stop one music.

Definition at line 36 of file music.hpp.

Constructor & Destructor Documentation

hx3d::audio::Music::Music ( )

Create an uninitialized music.

See also
initialize.

Definition at line 28 of file music.cpp.

hx3d::audio::Music::Music ( const std::string  pathToFile)
explicit

Load a music from a path.

Parameters
pathToFilePath to audio file.

Definition at line 30 of file music.cpp.

Member Function Documentation

void hx3d::audio::Music::initialize ( const std::string  pathToFile)

Initialize a music with a path.

Parameters
pathToFilePath to audio file

Definition at line 38 of file music.cpp.


The documentation for this class was generated from the following files: