5#ifndef RHYTHMGAME_SLICEDSOUNDBUFFER_H
6#define RHYTHMGAME_SLICEDSOUNDBUFFER_H
20 std::shared_ptr<const SoundBuffer> parent;
33 ma_uint64 frameCount);
35 auto getFrames()
const -> ma_uint64
override;
36 auto getSamples()
const -> std::span<const float>
override;
A view into a subsection of an existing SoundBuffer.
Definition SlicedSoundBuffer.h:19
auto getSamples() const -> std::span< const float > override
Definition SlicedSoundBuffer.cpp:27
auto getFrames() const -> ma_uint64 override
Definition SlicedSoundBuffer.cpp:21
A buffer that can be used to create sounds. Wraps an buffer.
Definition SoundBuffer.h:23
The namespace for all sound related classes.
Definition HitRules.h:16