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

Method Load

include/SoundUnmanaged.hpp:66–71  ·  view source on GitHub ↗

* Load a sound from the given file. * * @throws raylib::RaylibException Throws if the Sound failed to load. */

Source from the content-addressed store, hash-verified

64 * @throws raylib::RaylibException Throws if the Sound failed to load.
65 */
66 void Load(const std::string& fileName) {
67 set(::LoadSound(fileName.c_str()));
68 if (!IsValid()) {
69 throw RaylibException("Failed to load Sound from file");
70 }
71 }
72
73 /**
74 * Load a sound from the given Wave.

Callers

nothing calls this directly

Calls 3

RaylibExceptionClass · 0.85
c_strMethod · 0.80
IsValidFunction · 0.70

Tested by

no test coverage detected