 |
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"
50 return ::IsAudioDeviceReady();
57 ::SetMasterVolume(volume);
63 #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).
AudioDevice & 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.