|
Game Audio Module
A C++ audio system using miniaudio with Python bindings
|
Represents a single audio layer within a track. More...
Public Member Functions | |
| Layer () | |
| Default constructor for Layer. | |
Public Attributes | |
| float | current_volume |
| Current volume level. | |
| std::chrono::milliseconds | fade_duration |
| Duration of current fade. | |
| std::chrono::steady_clock::time_point | fade_end_time |
| When fade will end. | |
| std::chrono::steady_clock::time_point | fade_start_time |
| When fade began. | |
| bool | is_fading |
| Whether this layer is currently fading. | |
| std::unique_ptr< Sound > | sound |
| The actual sound object. | |
| float | start_volume |
| Volume when fade started. | |
| float | target_volume |
| Target volume for fading. | |
Represents a single audio layer within a track.
A layer contains a sound and data for controlling its playback and volume transitions.
|
inline |
Default constructor for Layer.
| float audio::AudioTrack::Layer::current_volume |
Current volume level.
| std::chrono::milliseconds audio::AudioTrack::Layer::fade_duration |
Duration of current fade.
| std::chrono::steady_clock::time_point audio::AudioTrack::Layer::fade_end_time |
When fade will end.
| std::chrono::steady_clock::time_point audio::AudioTrack::Layer::fade_start_time |
When fade began.
| bool audio::AudioTrack::Layer::is_fading |
Whether this layer is currently fading.
| std::unique_ptr<Sound> audio::AudioTrack::Layer::sound |
The actual sound object.
| float audio::AudioTrack::Layer::start_volume |
Volume when fade started.
| float audio::AudioTrack::Layer::target_volume |
Target volume for fading.