 |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
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);
70 #endif // RAYLIB_CPP_INCLUDE_AUDIODEVICE_HPP_
All raylib-cpp classes and functions appear in the raylib namespace.
AudioDevice & SetVolume(float volume)
Set master volume (listener).
bool Init()
Initialize audio device and context.
~AudioDevice()
Close the audio device and context.
AudioDevice(bool lateInit=false)
Initialize audio device and context.
Audio device management functions.
void Close()
Close the audio device and context.
bool IsReady() const
Check if audio device has been initialized successfully.
Exception used for most raylib-related exceptions.