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++.
Loading...
Searching...
No Matches
sound.cpp File Reference
#include "./asw/modules/sound.h"
#include <SDL3_mixer/SDL_mixer.h>
#include <algorithm>
#include <array>
#include <cmath>
#include "./asw/modules/log.h"
Include dependency graph for sound.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{sound.cpp}
 

Functions

float anonymous_namespace{sound.cpp}::compute_sfx_volume (float vol)
 
float anonymous_namespace{sound.cpp}::compute_music_volume (float vol)
 
int anonymous_namespace{sound.cpp}::find_free_track ()
 

Variables

float anonymous_namespace{sound.cpp}::master_volume = 1.0F
 
float anonymous_namespace{sound.cpp}::sfx_volume = 1.0F
 
float anonymous_namespace{sound.cpp}::music_volume = 1.0F
 
std::array< MIX_Track *, 16 > anonymous_namespace{sound.cpp}::tracks
 
MIX_Track * anonymous_namespace{sound.cpp}::music_track = nullptr
 
MIX_Mixer * anonymous_namespace{sound.cpp}::mixer = nullptr