4#include "../vae_types.hpp"
8namespace vae {
namespace core {
constexpr int _VAE_BUF_SIZE
tklb::AudioBufferTpl< Sample, tklb::HeapBuffer< Sample, tklb::DEFAULT_ALIGNMENT, memory::AllocatorAudio< unsigned char > > > AudioBuffer
Buffer type to hold all the audio data meant for playback.
constexpr int _VAE_SOURCE_SIZE
Contains Typedefinitions and basic structures use by the public API and internally.
float Sample
Default sample types used where ever possible, changing this means the engine needs to be recompiled,...
constexpr SourceHandle InvalidSourceHandle
GenericHandle SourceHandle
AudioBuffer signal
Audio signal itself loaded by SourceLoader.
bool stream
If false entire sample will be loaded in ram, there's no streaming for now.
@ ogg
Uses stb_vorbis to decode oggs.
@ wav
Uses dr_wav to decode wavs.
@ generator
Not implemented.
PathString path
Filesystem path.
bool resample
Whether the sound will be resampled when loading it.
enum vae::core::Source::Format format
NameString name
Name for debugging.
Sample gain
Gain applied to every voice creatd frin this source.
bool raw
The data in path is a data buffer.