|
RhythmGame 1.4.3
|
A view into a subsection of an existing SoundBuffer. More...
#include <SlicedSoundBuffer.h>


Public Member Functions | |
| SlicedSoundBuffer (std::shared_ptr< const SoundBuffer > parent, ma_uint64 startFrame, ma_uint64 frameCount) | |
| Creates a slice of an existing buffer. | |
| 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 view into a subsection of an existing SoundBuffer.
Used for bmson slicing. The parent buffer must outlive the slice. Frame indices are in stereo frames (2 floats each).
| sounds::SlicedSoundBuffer::SlicedSoundBuffer | ( | std::shared_ptr< const SoundBuffer > | parent, |
| ma_uint64 | startFrame, | ||
| ma_uint64 | frameCount | ||
| ) |
Creates a slice of an existing buffer.
| parent | The original buffer to slice from. |
| startFrame | The first frame (inclusive) of the slice. |
| frameCount | The number of frames in the slice. |
|
overridevirtual |
Implements sounds::SoundBuffer.
|
overridevirtual |
Implements sounds::SoundBuffer.