* Initialize audio device and context. * * @throws raylib::RaylibException Throws if the AudioDevice failed to initialize. */
| 38 | * @throws raylib::RaylibException Throws if the AudioDevice failed to initialize. |
| 39 | */ |
| 40 | static void Init() { |
| 41 | ::InitAudioDevice(); |
| 42 | if (!IsReady()) { |
| 43 | throw RaylibException("Failed to initialize AudioDevice"); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Close the audio device and context. |
nothing calls this directly
no test coverage detected