|
ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
|
Functions | |
| bool | _init () |
| Initialize the sound module. Called automatically by asw::core::init(). | |
| void | _shutdown () |
| Shut down the sound module. Called automatically by asw::core::shutdown(). | |
| MIX_Mixer * | get_mixer () |
| Get the SDL mixer device. | |
| void | play (const asw::Sample &sample, float volume=1.0F, float pan=0.0F, bool loop=false) |
| Play a sample. | |
| void | play_music (const asw::Music &sample, float volume=1.0F, float fade_in_s=0.0F) |
| Play a music sample. | |
| void | stop_music (float fade_out_s=0.0F) |
| Stop the currently playing music. | |
| void | pause_music () |
| Pause the currently playing music. | |
| void | resume_music () |
| Resume paused music. | |
| bool | is_music_playing () |
| Check if music is currently playing. | |
| bool | is_music_paused () |
| Check if music is paused. | |
| void | set_master_volume (float volume) |
| Set the master volume multiplier (affects all audio). | |
| void | set_sfx_volume (float volume) |
| Set the SFX volume multiplier. | |
| void | set_music_volume (float volume) |
| Set the music volume multiplier. | |
| float | get_master_volume () |
| Get the current master volume multiplier. | |
| float | get_sfx_volume () |
| Get the current SFX volume multiplier. | |
| float | get_music_volume () |
| Get the current music volume multiplier. | |
| bool asw::sound::_init | ( | ) |
Initialize the sound module. Called automatically by asw::core::init().
| void asw::sound::_shutdown | ( | ) |
Shut down the sound module. Called automatically by asw::core::shutdown().
| float asw::sound::get_master_volume | ( | ) |
| MIX_Mixer * asw::sound::get_mixer | ( | ) |
| float asw::sound::get_music_volume | ( | ) |
| float asw::sound::get_sfx_volume | ( | ) |
| bool asw::sound::is_music_paused | ( | ) |
| bool asw::sound::is_music_playing | ( | ) |
| void asw::sound::pause_music | ( | ) |
| void asw::sound::play | ( | const asw::Sample & | sample, |
| float | volume = 1.0F, | ||
| float | pan = 0.0F, | ||
| bool | loop = false ) |
| void asw::sound::play_music | ( | const asw::Music & | sample, |
| float | volume = 1.0F, | ||
| float | fade_in_s = 0.0F ) |
| void asw::sound::set_master_volume | ( | float | volume | ) |
| void asw::sound::set_music_volume | ( | float | volume | ) |
| void asw::sound::set_sfx_volume | ( | float | volume | ) |