Public Member Functions | |
std::shared_ptr< wze::sound > const & | sound () const |
void | set_sound (std::shared_ptr< wze::sound > const &sound) |
int8_t | volume () const |
void | set_volume (int8_t volume) |
float | range () const |
void | set_range (float range) |
bool | auto_panning () const |
void | set_auto_panning (bool auto_panning) |
float | x () const |
void | set_x (float x) final |
float | y () const |
void | set_y (float y) final |
float | z () const |
void | set_z (float z) |
bool | spatial () const |
void | set_spatial (bool spatial) |
float | x_offset () const final |
void | set_x_offset (float x_offset) |
float | y_offset () const final |
void | set_y_offset (float y_offset) |
bool | attach_x () const final |
void | set_attach_x (bool attach_x) |
bool | attach_y () const final |
void | set_attach_y (bool attach_y) |
bool | x_angle_lock () const final |
void | set_x_angle_lock (bool x_angle_lock) |
bool | y_angle_lock () const final |
void | set_y_angle_lock (bool y_angle_lock) |
bool | playing () const |
bool | paused () const |
speaker (std::shared_ptr< wze::sound > const &sound={}, int8_t volume=std::numeric_limits< int8_t >::max(), float range=std::numeric_limits< int16_t >::max(), bool auto_panning=false, float x=0, float y=0, float z=0, bool spatial=false, float x_offset=0, float y_offset=0, bool attach_x=true, bool attach_y=true, bool x_angle_lock=true, bool y_angle_lock=true) | |
speaker (speaker const &other) | |
speaker (speaker &&other) noexcept(false) | |
speaker & | operator= (speaker const &other) |
speaker & | operator= (speaker &&other) noexcept(false) |
void | play (uint16_t fade_in=0, uint16_t loops=0) |
void | pause () |
void | resume () |
void | stop (uint16_t fade_out=0) |
void | align_panning () |
![]() |
Definition at line 35 of file speaker.hpp.
|
explicit |
Definition at line 168 of file speaker.cpp.
wze::speaker::speaker | ( | speaker const & | other | ) |
Definition at line 191 of file speaker.cpp.
wze::speaker::speaker | ( | speaker && | other | ) |
Definition at line 197 of file speaker.cpp.
|
final |
Definition at line 203 of file speaker.cpp.
|
nodiscard |
Definition at line 47 of file speaker.cpp.
void wze::speaker::set_sound | ( | std::shared_ptr< wze::sound > const & | sound | ) |
Definition at line 51 of file speaker.cpp.
|
nodiscard |
Definition at line 55 of file speaker.cpp.
void wze::speaker::set_volume | ( | int8_t | volume | ) |
Definition at line 60 of file speaker.cpp.
|
nodiscard |
Definition at line 64 of file speaker.cpp.
void wze::speaker::set_range | ( | float | range | ) |
Definition at line 68 of file speaker.cpp.
|
nodiscard |
Definition at line 72 of file speaker.cpp.
void wze::speaker::set_auto_panning | ( | bool | auto_panning | ) |
Definition at line 76 of file speaker.cpp.
|
nodiscard |
Definition at line 80 of file speaker.cpp.
|
finalvirtual |
|
nodiscard |
Definition at line 88 of file speaker.cpp.
|
finalvirtual |
|
nodiscard |
Definition at line 96 of file speaker.cpp.
void wze::speaker::set_z | ( | float | z | ) |
Definition at line 100 of file speaker.cpp.
|
nodiscard |
Definition at line 104 of file speaker.cpp.
void wze::speaker::set_spatial | ( | bool | spatial | ) |
Definition at line 108 of file speaker.cpp.
|
nodiscardfinalvirtual |
Implements wze::component.
Definition at line 112 of file speaker.cpp.
void wze::speaker::set_x_offset | ( | float | x_offset | ) |
Definition at line 116 of file speaker.cpp.
|
nodiscardfinalvirtual |
Implements wze::component.
Definition at line 120 of file speaker.cpp.
void wze::speaker::set_y_offset | ( | float | y_offset | ) |
Definition at line 124 of file speaker.cpp.
|
nodiscardfinalvirtual |
Implements wze::component.
Definition at line 128 of file speaker.cpp.
void wze::speaker::set_attach_x | ( | bool | attach_x | ) |
Definition at line 132 of file speaker.cpp.
|
nodiscardfinalvirtual |
Implements wze::component.
Definition at line 136 of file speaker.cpp.
void wze::speaker::set_attach_y | ( | bool | attach_y | ) |
Definition at line 140 of file speaker.cpp.
|
nodiscardfinalvirtual |
Implements wze::component.
Definition at line 144 of file speaker.cpp.
void wze::speaker::set_x_angle_lock | ( | bool | x_angle_lock | ) |
Definition at line 148 of file speaker.cpp.
|
nodiscardfinalvirtual |
Implements wze::component.
Definition at line 152 of file speaker.cpp.
void wze::speaker::set_y_angle_lock | ( | bool | y_angle_lock | ) |
Definition at line 156 of file speaker.cpp.
|
nodiscard |
Definition at line 160 of file speaker.cpp.
|
nodiscard |
Definition at line 164 of file speaker.cpp.
wze::speaker & wze::speaker::operator= | ( | speaker const & | other | ) |
Definition at line 208 of file speaker.cpp.
wze::speaker & wze::speaker::operator= | ( | speaker && | other | ) |
Definition at line 229 of file speaker.cpp.
void wze::speaker::play | ( | uint16_t | fade_in = 0, |
uint16_t | loops = 0 ) |
Definition at line 239 of file speaker.cpp.
void wze::speaker::pause | ( | ) |
Definition at line 246 of file speaker.cpp.
void wze::speaker::resume | ( | ) |
Definition at line 251 of file speaker.cpp.
void wze::speaker::stop | ( | uint16_t | fade_out = 0 | ) |
Definition at line 256 of file speaker.cpp.
void wze::speaker::align_panning | ( | ) |
Definition at line 261 of file speaker.cpp.