![]() |
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... | |
| AudioDevice & | SetVolume (float volume) |
| Set master volume (listener). More... | |
Static Public Member Functions | |
| static void | Close () |
| Close the audio device and context. More... | |
| static void | Init () |
| Initialize audio device and context. More... | |
| static bool | IsReady () |
| Check if audio device has been initialized successfully. More... | |
Audio device management functions.
Definition at line 12 of file AudioDevice.hpp.
|
inlineexplicit |
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().
|
inlinestatic |
Close the audio device and context.
Definition at line 47 of file AudioDevice.hpp.
Referenced by ~AudioDevice().
|
inlinestatic |
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().
|
inlinestatic |
Check if audio device has been initialized successfully.
Definition at line 52 of file AudioDevice.hpp.
Referenced by Init().
|
inline |
Set master volume (listener).
| volume | The desired volume to set. |
Definition at line 59 of file AudioDevice.hpp.