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