Struct PreLoadedMusic
Defined in File PreLoadedMusic.hpp
Struct Documentation
-
struct PreLoadedMusic
Public Functions
-
PreLoadedMusic() = default
-
~PreLoadedMusic() = default
-
bool init(litedb &db, const SANITIZED_ORNOT &KeyOrPath)
-
bool changePos(FRAME_POS Pos)
changes the playback position
- Parameters:
Pos – new position
- Returns:
true
- Returns:
false
-
bool getPos(FRAME_POS &pos)
Get the playback position.
- Parameters:
pos – position to be returned
- Returns:
true
- Returns:
false
-
bool getRange(FRAME_POS numFrames, SIMD_FLOAT &buffer)
check the music’s range and return decoded pcm frames
- Parameters:
numFrames – amount of frames
buffer – pcm frames to be returned
- Returns:
true
- Returns:
false
-
PreLoadedMusic() = default