|
RhythmGame 1.4.3
|
A buffer that can be used to create sounds. Wraps an buffer. More...
#include <SoundBuffer.h>

Public Member Functions | |
| virtual | ~SoundBuffer ()=default |
| virtual auto | getFrames () const -> ma_uint64=0 |
| virtual auto | getSamples () const -> std::span< const float >=0 |
A buffer that can be used to create sounds. Wraps an buffer.
This class is used to load, decode and store the sound data. It can be used to create multiple sounds that share the same buffer. Creating new instances of this class can be very expensive, so it is recommended to load every sound only once, at the start of a scene.
|
virtualdefault |
|
pure virtual |
Implemented in sounds::NormalSoundBuffer, and sounds::SlicedSoundBuffer.
|
pure virtual |
Implemented in sounds::NormalSoundBuffer, and sounds::SlicedSoundBuffer.