MCPcopy Create free account
hub / github.com/RobLoach/raylib-cpp / Load

Method Load

include/AudioStreamUnmanaged.hpp:61–66  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

RaylibExceptionClass · 0.85
IsValidFunction · 0.70

Tested by

no test coverage detected