Sample@ Audio::LoadSample(const string&in filename, bool streamed = false)
Loads a sound.
string
filename
The path of the sound to load. Must be relative to the root of your plugin. If you want to load samples from other locations, use LoadSampleFromAbsolutePath instead.
bool
streamed
Whether or not the sample should be streamed. This helps reduce memory usage when you're loading very big audio files such as music.
Audio::Sample@
Sample@ Audio::LoadSample(MemoryBuffer&in buffer, bool streamed = false)
Loads a sound from a memory buffer.
MemoryBuffer
buffer
bool
streamed
Whether or not the sample should be streamed. This helps reduce memory usage when you're loading very big audio files such as music.
Audio::Sample@