|
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++.
|
Classes | |
| struct | Duck |
| struct | LowPass |
| struct | Voice |
Functions | |
| float | bus_gain (asw::sound::Bus bus) |
| bool | is_active (const Voice &v) |
| void SDLCALL | low_pass_callback (void *userdata, MIX_Track *, const SDL_AudioSpec *spec, float *pcm, int samples) |
| float | attenuate (const asw::sound::Attenuation &att, float distance) |
| float | doppler (const Voice &v) |
| void | set_stereo_pan (Voice &v, float pan) |
| void | set_point (Voice &v, float x, float z) |
| void | apply (Voice &v) |
| void | apply_music () |
| int | find_voice (int priority) |
| float | vary (float value, float variation) |
| Voice * | resolve (int voice, uint32_t generation) |
| asw::sound::SoundHandle | start (const asw::Sample &sample, const asw::sound::PlayOptions &options, const asw::Vec2< float > *position) |
Variables | |
| constexpr size_t | NUM_VOICES = 32 |
| constexpr size_t | NUM_BUSES = static_cast<size_t>(asw::sound::Bus::Count) |
| constexpr int | MAX_FILTER_CHANNELS = 8 |
| constexpr float | OCCLUDED_CUTOFF_HZ = 500.0F |
| constexpr float | OPEN_CUTOFF_HZ = 20000.0F |
| constexpr float | OCCLUDED_GAIN = 0.5F |
| constexpr float | MIN_DOPPLER = 0.5F |
| constexpr float | MAX_DOPPLER = 2.0F |
| float | master_volume = 1.0F |
| std::array< float, NUM_BUSES > | bus_volume = { 1.0F, 1.0F, 1.0F, 1.0F, 1.0F } |
| std::array< Duck, NUM_BUSES > | ducks {} |
| std::array< Voice, NUM_VOICES > | voices |
| MIX_Track * | music_track = nullptr |
| float | music_base_volume = 1.0F |
| float | music_sent_gain = -1.0F |
| MIX_Mixer * | mixer = nullptr |
| uint32_t | session = 0 |
| asw::Vec2< float > | listener_position |
| asw::Vec2< float > | listener_velocity |
| asw::sound::SpatialMode | spatial_mode = asw::sound::SpatialMode::Stereo |
| float | doppler_factor = 1.0F |
| float | speed_of_sound = 3000.0F |
| uint64_t | last_update_ns = 0 |
| float anonymous_namespace{sound.cpp}::attenuate | ( | const asw::sound::Attenuation & | att, |
| float | distance ) |
| float anonymous_namespace{sound.cpp}::bus_gain | ( | asw::sound::Bus | bus | ) |
| float anonymous_namespace{sound.cpp}::doppler | ( | const Voice & | v | ) |
| int anonymous_namespace{sound.cpp}::find_voice | ( | int | priority | ) |
| bool anonymous_namespace{sound.cpp}::is_active | ( | const Voice & | v | ) |
| void SDLCALL anonymous_namespace{sound.cpp}::low_pass_callback | ( | void * | userdata, |
| MIX_Track * | , | ||
| const SDL_AudioSpec * | spec, | ||
| float * | pcm, | ||
| int | samples ) |
| Voice * anonymous_namespace{sound.cpp}::resolve | ( | int | voice, |
| uint32_t | generation ) |
| void anonymous_namespace{sound.cpp}::set_point | ( | Voice & | v, |
| float | x, | ||
| float | z ) |
| void anonymous_namespace{sound.cpp}::set_stereo_pan | ( | Voice & | v, |
| float | pan ) |
| asw::sound::SoundHandle anonymous_namespace{sound.cpp}::start | ( | const asw::Sample & | sample, |
| const asw::sound::PlayOptions & | options, | ||
| const asw::Vec2< float > * | position ) |
| float anonymous_namespace{sound.cpp}::vary | ( | float | value, |
| float | variation ) |
| std::array<float, NUM_BUSES> anonymous_namespace{sound.cpp}::bus_volume = { 1.0F, 1.0F, 1.0F, 1.0F, 1.0F } |
| float anonymous_namespace{sound.cpp}::doppler_factor = 1.0F |
| uint64_t anonymous_namespace{sound.cpp}::last_update_ns = 0 |
| asw::Vec2<float> anonymous_namespace{sound.cpp}::listener_position |
| asw::Vec2<float> anonymous_namespace{sound.cpp}::listener_velocity |
|
constexpr |
|
constexpr |
|
constexpr |
| float anonymous_namespace{sound.cpp}::music_base_volume = 1.0F |
| float anonymous_namespace{sound.cpp}::music_sent_gain = -1.0F |
| MIX_Track* anonymous_namespace{sound.cpp}::music_track = nullptr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
| asw::sound::SpatialMode anonymous_namespace{sound.cpp}::spatial_mode = asw::sound::SpatialMode::Stereo |
| float anonymous_namespace{sound.cpp}::speed_of_sound = 3000.0F |
| std::array<Voice, NUM_VOICES> anonymous_namespace{sound.cpp}::voices |