11#ifndef RAYSOUNDBUFFER_HPP_
12#define RAYSOUNDBUFFER_HPP_
29 _sound = raylib::LoadSound(path.c_str());
33 raylib::UnloadSound(_sound);
37 return raylib::IsSoundValid(_sound);
41 return _sound.frameCount /
static_cast<float>(_sound.stream.sampleRate);
RaySoundBuffer(std::string path)
Definition RaySoundBuffer.hpp:28
raylib::Sound handle() const
Definition RaySoundBuffer.hpp:44
bool isReady() const override
notice if the buffer is ready
Definition RaySoundBuffer.hpp:36
~RaySoundBuffer()
Definition RaySoundBuffer.hpp:32
float getLength() const override
Get the Length of the buffered sound, in seconds.
Definition RaySoundBuffer.hpp:40
Loaded audio samples, independent of any ISound that plays them - deleting every ISound built from a ...
Definition ISoundBuffer.hpp:24