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
asw::sound::Attenuation Struct Reference

Distance settings for positional sounds, in world units (pixels). More...

#include <sound.h>

Public Attributes

float min_distance { 100.0F }
 Full volume at this distance or closer.
 
float max_distance { 1000.0F }
 Silent at this distance or further.
 
Rolloff rolloff { Rolloff::Inverse }
 Shape of the fall off between the two.
 

Detailed Description

Distance settings for positional sounds, in world units (pixels).

Definition at line 54 of file sound.h.

Member Data Documentation

◆ max_distance

float asw::sound::Attenuation::max_distance { 1000.0F }

Silent at this distance or further.

Definition at line 59 of file sound.h.

◆ min_distance

float asw::sound::Attenuation::min_distance { 100.0F }

Full volume at this distance or closer.

Definition at line 56 of file sound.h.

◆ rolloff

Rolloff asw::sound::Attenuation::rolloff { Rolloff::Inverse }

Shape of the fall off between the two.

Definition at line 62 of file sound.h.


The documentation for this struct was generated from the following file: