#include <vae_source_loader.hpp>
Definition at line 17 of file vae_source_loader.hpp.
◆ load()
Result vae::core::SourceLoader::load |
( |
Source & |
s, |
|
|
const char * |
path |
|
) |
| |
|
inline |
Loads a wav file for the resource.
- Parameters
-
- Returns
- Result
Definition at line 24 of file vae_source_loader.hpp.
26 const char* data = s.path.c_str();
30 joinedPath.append(s.path);
31 data = joinedPath.c_str();
35 joinedPath.reserve(length);
37 data = joinedPath.data();
40 length = s.path.size();
50 return success ?
Result::Success :
Result::GenericFailure;
55 return result ?
Result::Success :
Result::GenericFailure;
57 return
Result::GenericFailure;
60 return
Result::GenericFailure;
Using template interfaces isn't an option so this simply defines a default Convolver type.
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.
unsigned int Size
How the elements are addressed in the heapbuffer.
float Sample
Default sample types used where ever possible, changing this means the engine needs to be recompiled,...
Result
Return Types for most engine functions.
@ FileOpenError
File system could not load file.
HeapBuffer< char > String
@ ogg
Uses stb_vorbis to decode oggs.
@ wav
Uses dr_wav to decode wavs.
Result load(Source &s, const char *path)
Loads a wav file for the resource.
#define VAE_PROFILER_SCOPE_NAMED(name)
Profiles a scope and names it.
The documentation for this struct was generated from the following file: