* Load audio stream (to stream raw audio PCM data). * * Does NOT call Unload() first — that is the responsibility of the managed class. * * @throws raylib::RaylibException Throws if the AudioStream failed to load. */
| 59 | * @throws raylib::RaylibException Throws if the AudioStream failed to load. |
| 60 | */ |
| 61 | void Load(unsigned int sampleRate, unsigned int sampleSize, unsigned int channels = 2) { |
| 62 | set(::LoadAudioStream(sampleRate, sampleSize, channels)); |
| 63 | if (!IsValid()) { |
| 64 | throw RaylibException("Failed to load audio stream"); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Unload audio stream and free memory. |
nothing calls this directly
no test coverage detected