![]() |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
Audio device management functions. More...
#include <AudioDevice.hpp>
Public Member Functions | |
AudioDevice (bool lateInit=false) | |
Initialize audio device and context. More... | |
~AudioDevice () | |
Close the audio device and context. More... | |
void | Close () |
Close the audio device and context. More... | |
void | Init () |
Initialize audio device and context. More... | |
bool | IsReady () const |
Check if audio device has been initialized successfully. More... | |
AudioDevice & | SetVolume (float volume) |
Set master volume (listener). More... | |
Audio device management functions.
Definition at line 12 of file AudioDevice.hpp.
|
inline |
Initialize audio device and context.
lateInit | Whether or not to post-pone initializing the context. |
raylib::RaylibException | Throws if the AudioDevice failed to initialize. |
Definition at line 21 of file AudioDevice.hpp.
References Init().
|
inline |
Close the audio device and context.
Definition at line 30 of file AudioDevice.hpp.
References Close().
|
inline |
Close the audio device and context.
Definition at line 49 of file AudioDevice.hpp.
Referenced by ~AudioDevice().
|
inline |
Initialize audio device and context.
raylib::RaylibException | Throws if the AudioDevice failed to initialize. |
Definition at line 39 of file AudioDevice.hpp.
References IsReady().
Referenced by AudioDevice().
|
inline |
Check if audio device has been initialized successfully.
Definition at line 56 of file AudioDevice.hpp.
Referenced by Init().
|
inline |
Set master volume (listener).
volume | The desired volume to set. |
Definition at line 65 of file AudioDevice.hpp.