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


Public Member Functions | |
| NormalSoundBuffer (AudioEngine *engine, const std::filesystem::path &filename) | |
| Creates a new sound buffer from a file. | |
| NormalSoundBuffer (AudioEngine *engine, QByteArrayView encoded) | |
| Creates a new sound buffer from an encoded file in memory. | |
| auto | getFrames () const -> ma_uint64 override |
| auto | getSamples () const -> std::span< const float > override |
Public Member Functions inherited from sounds::SoundBuffer | |
| virtual | ~SoundBuffer ()=default |
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.
|
explicit |
Creates a new sound buffer from a file.
| filename | The path to the file to load. |
|
explicit |
Creates a new sound buffer from an encoded file in memory.
|
overridevirtual |
Implements sounds::SoundBuffer.
|
overridevirtual |
Implements sounds::SoundBuffer.