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
anonymous_namespace{sound.cpp} Namespace Reference

Functions

float compute_sfx_volume (float vol)
 
float compute_music_volume (float vol)
 
int find_free_track ()
 

Variables

float master_volume = 1.0F
 
float sfx_volume = 1.0F
 
float music_volume = 1.0F
 
std::array< MIX_Track *, 16 > tracks
 
MIX_Track * music_track = nullptr
 
MIX_Mixer * mixer = nullptr
 

Function Documentation

◆ compute_music_volume()

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

Definition at line 25 of file sound.cpp.

◆ compute_sfx_volume()

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

Definition at line 19 of file sound.cpp.

◆ find_free_track()

int anonymous_namespace{sound.cpp}::find_free_track ( )

Definition at line 31 of file sound.cpp.

Variable Documentation

◆ master_volume

float anonymous_namespace{sound.cpp}::master_volume = 1.0F

Definition at line 11 of file sound.cpp.

◆ mixer

MIX_Mixer* anonymous_namespace{sound.cpp}::mixer = nullptr

Definition at line 17 of file sound.cpp.

◆ music_track

MIX_Track* anonymous_namespace{sound.cpp}::music_track = nullptr

Definition at line 16 of file sound.cpp.

◆ music_volume

float anonymous_namespace{sound.cpp}::music_volume = 1.0F

Definition at line 13 of file sound.cpp.

◆ sfx_volume

float anonymous_namespace{sound.cpp}::sfx_volume = 1.0F

Definition at line 12 of file sound.cpp.

◆ tracks

std::array<MIX_Track*, 16> anonymous_namespace{sound.cpp}::tracks

Definition at line 15 of file sound.cpp.