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