1#ifndef RAYLIB_CPP_INCLUDE_AUDIODEVICE_HPP_
2#define RAYLIB_CPP_INCLUDE_AUDIODEVICE_HPP_
4#include "./RaylibException.hpp"
5#include "./raylib-cpp-utils.hpp"
47 static void Close() { ::CloseAudioDevice(); }
52 static bool IsReady() { return ::IsAudioDeviceReady(); }
60 ::SetMasterVolume(volume);
Audio device management functions.
static void Close()
Close the audio device and context.
AudioDevice & SetVolume(float volume)
Set master volume (listener).
~AudioDevice()
Close the audio device and context.
static bool IsReady()
Check if audio device has been initialized successfully.
AudioDevice(bool lateInit=false)
Initialize audio device and context.
static void Init()
Initialize audio device and context.
Exception used for most raylib-related exceptions.
All raylib-cpp classes and functions appear in the raylib namespace.