2 #include "../Utils/ArrayView.hpp"
A simple audio buffer to hold PCM samples
Definition: AudioBuffer.hpp:60
void stop(AudioManager &manager) const
Stop this buffer playing.
void setDataMultiple(const TypedAudioData data[Size])
Definition: AudioBuffer.hpp:129
void setData(const TypedAudioData &data)
void setData(const TypedAudioData data[], size_t size)
Some deprecated function.
AudioData< uint8_t > AudioData8U
Definition: AudioBuffer.hpp:92
void play(AudioManager &manager) const
Play this buffer.
void loop(AudioManager &manager) const
Loop this buffer forever.
void setCallback(Callback callback)
Set the callback function.
void setCallback2(Callback2 callback, void *user)
Set the callback function.
virtual ~AudioBuffer()=default
Audio::AudioBuffer destructor.
AudioBuffer(const std::string &filename)
Constructor for Audio::AudioBuffer.
Type
Different type of audio formats.
Definition: AudioBuffer.hpp:65
bool playing
Definition: AudioBuffer.hpp:158
An audio manager that accepts multiple Audio::AudioBuffer instances.
Definition: AudioManager.hpp:21
Filesystem path utility functions.
Definition: ArrayView.hpp:11
int(*)(AudioBuffer &buffer, size_t offset, void *user) Callback2
Some callback function pointer type definition.
Definition: AudioBuffer.hpp:23
int(* Callback)(AudioBuffer &buffer, size_t offset)
Some callback function pointer type definition.
Definition: AudioBuffer.hpp:15
void doSomething(AudioBuffer &buffer)
Do something with the buffer.
This namespace contains all of the necessary engine components.
Definition: Asset.hpp:5
Use this to populate the buffer.
Definition: AudioBuffer.hpp:96
Type type
Definition: AudioBuffer.hpp:98
AudioData8U buffer
Definition: AudioBuffer.hpp:97