24 unsigned char pan = 128,
void play(const asw::Sample &sample, int volume=255, unsigned char pan=128, int loop=0)
Play a sample.
void stopMusic()
Stop the currently playing music.
void playMusic(const asw::Music &sample, int volume=255)
Play a music sample.
std::shared_ptr< Mix_Chunk > Sample
Alias for a shared pointer to an Mix_Chunk.
std::shared_ptr< Mix_Music > Music
Alias for a shared pointer to an Mix_Music.
Types used throughout the ASW library.