Flint Engine
Modular C++20 2D game engine powered by SDL3
Loading...
Searching...
No Matches

◆ loadSound()

int Flint::Audio::loadSound ( const void * data,
const size_t size )

Load a sound from an in-memory audio file.

Parameters
dataPointer to the raw audio file bytes.
sizeNumber of bytes in data.
Returns
A positive integer ID that identifies the loaded sound, or -1 on failure.