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

Method Load

include/WaveUnmanaged.hpp:77–82  ·  view source on GitHub ↗

* Load wave data from file. * * @throws raylib::RaylibException Throws if the Wave failed to load. */

Source from the content-addressed store, hash-verified

75 * @throws raylib::RaylibException Throws if the Wave failed to load.
76 */
77 void Load(const std::string& fileName) {
78 set(::LoadWave(fileName.c_str()));
79 if (!IsValid()) {
80 throw RaylibException("Failed to load Wave from file: " + fileName);
81 }
82 }
83
84 /**
85 * Load wave from memory buffer; fileType refers to extension: i.e. "wav".

Callers

nothing calls this directly

Calls 3

RaylibExceptionClass · 0.85
c_strMethod · 0.80
IsValidFunction · 0.70

Tested by

no test coverage detected