28namespace sound {
struct ALExtensions; }
45 std::shared_ptr<ISoundDataOpen>
m_data;
53 PlayingSound(ALuint source_id, std::shared_ptr<ISoundDataOpen> data,
bool loop,
54 f32 volume, f32 pitch, f32 start_time,
55 const std::optional<std::pair<v3f, v3f>> &pos_vel_opt,
66 bool stepStream(
bool playback_speed_changed =
false);
69 bool fade(f32 step, f32 target_gain)
noexcept;
72 bool doFade(f32 dtime)
noexcept;
76 void setGain(f32 gain)
noexcept;
#define DISABLE_CLASS_COPY(C)
Definition basic_macros.h:35
A sound that is currently played.
Definition playing_sound.h:38
ALint getState() noexcept
Definition playing_sound.h:87
void resume() noexcept
Definition playing_sound.h:106
void play() noexcept
Definition playing_sound.h:84
bool isDead() noexcept
Definition playing_sound.h:94
std::optional< FadeState > m_fade_state
Definition playing_sound.h:50
~PlayingSound() noexcept
Definition playing_sound.h:58
bool m_is_positional
Definition playing_sound.h:48
bool isStreaming() const noexcept
Definition playing_sound.h:82
ALuint m_next_sample_pos
Definition playing_sound.h:46
void updatePosVel(const v3f &pos, const v3f &vel) noexcept
Definition playing_sound.cpp:242
bool stepStream(bool playback_speed_changed=false)
Definition playing_sound.cpp:127
bool fade(f32 step, f32 target_gain) noexcept
Definition playing_sound.cpp:192
bool m_looping
Definition playing_sound.h:47
bool doFade(f32 dtime) noexcept
Definition playing_sound.cpp:204
bool m_stopped_means_dead
Definition playing_sound.h:49
std::shared_ptr< ISoundDataOpen > m_data
Definition playing_sound.h:45
void setPitch(f32 pitch)
Definition playing_sound.cpp:275
PlayingSound(ALuint source_id, std::shared_ptr< ISoundDataOpen > data, bool loop, f32 volume, f32 pitch, f32 start_time, const std::optional< std::pair< v3f, v3f > > &pos_vel_opt, const ALExtensions &exts)
Definition playing_sound.cpp:35
void pause() noexcept
Definition playing_sound.h:100
f32 getGain() noexcept
Definition playing_sound.cpp:265
ALuint m_source_id
Definition playing_sound.h:44
void setGain(f32 gain) noexcept
Definition playing_sound.cpp:255
core::vector3df v3f
Definition irr_v3d.h:26
Definition al_extensions.cpp:26
Struct for AL and ALC extensions.
Definition al_extensions.h:30
Definition playing_sound.h:39
f32 step
Definition playing_sound.h:40
f32 target_gain
Definition playing_sound.h:41