MOS
Public Member Functions | Public Attributes | Friends | List of all members
mos::apu::Source Class Referencefinal

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
 

Detailed Description

Source living on the APU.

Member Function Documentation

◆ id()

auto mos::apu::Source::id ( ) const -> unsigned int

Unique id.

Member Data Documentation

◆ obstructed

float mos::apu::Source::obstructed {0.0f}

How much the source is obstructed.

0.0 - 1.0

◆ pitch

float mos::apu::Source::pitch {1.0f}

Pitch.

◆ playing

bool mos::apu::Source::playing {false}

The source is playing.

◆ position

glm::vec3 mos::apu::Source::position {glm::vec3(0.0f)}

Position.


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