Documentation

Audio::LoadSampleFromAbsolutePath

Function

Sample@ Audio::LoadSampleFromAbsolutePath(const string&in filename, bool streamed = false)

Loads a sound from an absolute path.

string filename

The absolute path of the sound to load. If you want to load samples from your plugin's resources, use LoadSample 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.

Returns Audio::Sample@