11#ifndef RAYSOUNDBUFFER_HPP_
12#define RAYSOUNDBUFFER_HPP_
18#include "ISoundBuffer.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);
Raylib SoundBuffer class - owns the loaded samples (raylib's own LoadSound() result)....
Definition RaySoundBuffer.hpp:25
RaySoundBuffer(std::string path)
Definition RaySoundBuffer.hpp:28
raylib::Sound handle() const
Definition RaySoundBuffer.hpp:44
bool isReady() const override
Definition RaySoundBuffer.hpp:36
~RaySoundBuffer()
Definition RaySoundBuffer.hpp:32
float getLength() const override
Definition RaySoundBuffer.hpp:40