tec::AudioSource

#include <sound-system.hpp>

Public Functions

Name
AudioSource(std::shared_ptr< VorbisStream > stream, bool auto_play)
AudioSource() =default
void Out(proto::Component * target) const
void In(const proto::Component & _source)

Public Attributes

Name
ALuint source
ALuint[2] buffer
bool looping
std::shared_ptr< VorbisStream > vorbis_stream
AUDIOSOURCE_STATE source_state
int gain
std::string audio_name

Public Functions Documentation

function AudioSource

inline AudioSource(
    std::shared_ptr< VorbisStream > stream,
    bool auto_play
)

function AudioSource

AudioSource() =default

function Out

inline void Out(
    proto::Component * target
) const

function In

inline void In(
    const proto::Component & _source
)

Public Attributes Documentation

variable source

ALuint source {0};

variable buffer

ALuint[2] buffer {0, 0};

variable looping

bool looping {false};

variable vorbis_stream

std::shared_ptr< VorbisStream > vorbis_stream;

variable source_state

AUDIOSOURCE_STATE source_state {AUDIOSOURCE_STATE::PAUSED};

variable gain

int gain {100};

variable audio_name

std::string audio_name;

Updated on 2022-07-24 at 19:27:35 +0000