35 _alias = raylib::LoadSoundAlias(buffer.
handle());
40 raylib::UnloadSoundAlias(_alias);
44 return raylib::IsSoundValid(_alias);
51 raylib::StopSound(_alias);
52 raylib::PlaySound(_alias);
56 raylib::PauseSound(_alias);
60 raylib::StopSound(_alias);
65 raylib::SetSoundVolume(_alias, volume);
Raylib SoundBuffer class - owns the loaded samples (raylib's own LoadSound() result)....
Definition RaySoundBuffer.hpp:25
raylib::Sound handle() const
Definition RaySoundBuffer.hpp:44
void setVolume(float volume) override
set the volume of the sound
Definition RaySound.hpp:63
void stop() override
Stops the sound AND rewinds to zero.
Definition RaySound.hpp:59
void setVelocity(Vector3f velocity) override
set the velocity of the sound, used by backends that apply a doppler effect
Definition RaySound.hpp:81
Vector3f getPosition() const override
get the 3D position of the sound
Definition RaySound.hpp:77
void pause() override
Suspends the sound without touching the position.
Definition RaySound.hpp:55
Vector3f getVelocity() const override
get the velocity of the sound
Definition RaySound.hpp:84
~RaySound() override
Definition RaySound.hpp:39
void setPosition(Vector3f position) override
set the 3D position of the sound, for backends that spatialize against a listener....
Definition RaySound.hpp:74
bool isReady() const override
Definition RaySound.hpp:43
float getVolume() const override
get the volume of the sound
Definition RaySound.hpp:68
RaySound(RaySoundBuffer &buffer)
Definition RaySound.hpp:34
void play() override
Fires the sound from the beginning.
Definition RaySound.hpp:47
Vector3< double > Vector3f
Definition Vector3.hpp:121