* Load wave data from file. * * @throws raylib::RaylibException Throws if the Wave failed to load. */
| 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". |
nothing calls this directly
no test coverage detected