MOS
|
Source living on the APU. More...
#include <source.hpp>
Public Member Functions | |
auto | id () const -> unsigned int |
Unique id. More... | |
Public Attributes | |
glm::vec3 | position {glm::vec3(0.0f)} |
Position. More... | |
glm::vec3 | velocity {glm::vec3(0.0f)} |
Velocity. | |
float | pitch {1.0f} |
Pitch. More... | |
float | gain {1.0f} |
Volume. | |
bool | loop {false} |
The source is looping. | |
bool | playing {false} |
The source is playing. More... | |
float | obstructed {0.0f} |
How much the source is obstructed. More... | |
Friends | |
class | mos::al::Renderer |
class | Sound |
class | Sound_stream |
Source living on the APU.
auto mos::apu::Source::id | ( | ) | const -> unsigned int |
Unique id.
float mos::apu::Source::obstructed {0.0f} |
How much the source is obstructed.
0.0 - 1.0
float mos::apu::Source::pitch {1.0f} |
Pitch.
bool mos::apu::Source::playing {false} |
The source is playing.
glm::vec3 mos::apu::Source::position {glm::vec3(0.0f)} |
Position.