![]() |
raylib-cpp
C++ object-oriented wrapper library for raylib.
|
Audio device management functions. More...
Public Member Functions | |
| AudioDevice (bool lateInit=false) | |
| Initialize audio device and context. More... | |
| ~AudioDevice () | |
| Close the audio device and context. | |
| void | Close () |
| Close the audio device and context. | |
| void | Init () |
| Initialize audio device and context. More... | |
| bool | IsReady () const |
| Check if audio device has been initialized successfully. | |
| 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 |
Initialize audio device and context.
| raylib::RaylibException | Throws if the AudioDevice failed to initialize. |
Definition at line 37 of file AudioDevice.hpp.
References IsReady().
Referenced by AudioDevice().
|
inline |
Set master volume (listener).
| volume | The desired volume to set. |
Definition at line 59 of file AudioDevice.hpp.