RhythmGame 1.4.3
Loading...
Searching...
No Matches
SoundBuffer.h
Go to the documentation of this file.
1//
2// Created by bobini on 15.04.23.
3//
4
5#ifndef RHYTHMGAME_SOUNDBUFFER_H
6#define RHYTHMGAME_SOUNDBUFFER_H
7#include "AudioEngine.h"
8#include <vector>
9#include <filesystem>
10#include <span>
11
12namespace sounds {
13class AudioEngine;
14
23{
24 std::vector<float> samples;
25
26 public:
27 virtual ~SoundBuffer() = default;
28
29 virtual auto getFrames() const -> ma_uint64 = 0;
30
31 virtual auto getSamples() const -> std::span<const float> = 0;
32};
33} // namespace sounds
34
35#endif // RHYTHMGAME_SOUNDBUFFER_H
A buffer that can be used to create sounds. Wraps an buffer.
Definition SoundBuffer.h:23
virtual ~SoundBuffer()=default
virtual auto getFrames() const -> ma_uint64=0
virtual auto getSamples() const -> std::span< const float >=0
The namespace for all sound related classes.
Definition HitRules.h:16