MCPcopy Create free account
hub / github.com/RobLoach/raylib-cpp / Load

Method Load

include/MusicUnmanaged.hpp:72–77  ·  view source on GitHub ↗

* Load music stream from file. * * @throws raylib::RaylibException Throws if the music failed to load. */

Source from the content-addressed store, hash-verified

70 * @throws raylib::RaylibException Throws if the music failed to load.
71 */
72 void Load(const std::string& fileName) {
73 set(::LoadMusicStream(fileName.c_str()));
74 if (!IsValid()) {
75 throw RaylibException(TextFormat("Failed to load Music from file: %s", fileName.c_str()));
76 }
77 }
78
79 /**
80 * Load music stream from memory.

Callers

nothing calls this directly

Calls 3

RaylibExceptionClass · 0.85
c_strMethod · 0.80
IsValidFunction · 0.70

Tested by

no test coverage detected