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