Helper class for audio device management functions, and more.
More...
#include <AudioHelper.hpp>
Helper class for audio device management functions, and more.
◆ closeAudioDevice()
| void raylib::helper::AudioHelper::closeAudioDevice |
( |
| ) |
|
|
static |
Close the audio device and context.
◆ getNumberOfSoundsPlaying()
| int raylib::helper::AudioHelper::getNumberOfSoundsPlaying |
( |
| ) |
|
|
static |
Get the number of sounds playing in multichannel buffer pool.
- Returns
- the number of sounds playing in multichannel buffer pool
◆ initAudioDevice()
| void raylib::helper::AudioHelper::initAudioDevice |
( |
| ) |
|
|
static |
Initialize audio device and context.
◆ isAudioDeviceReady()
| bool raylib::helper::AudioHelper::isAudioDeviceReady |
( |
| ) |
|
|
static |
Check if audio device has been initialized successfully.
- Returns
- true if audio device has been initialized successfully
◆ setAudioStreamBufferSizeDefault()
| void raylib::helper::AudioHelper::setAudioStreamBufferSizeDefault |
( |
const int & |
size | ) |
|
|
static |
Set the default size for new audio streams.
- Parameters
-
◆ setMasterVolume()
| void raylib::helper::AudioHelper::setMasterVolume |
( |
float |
volume | ) |
|
|
static |
Set master volume (listener)
- Parameters
-
◆ stopMultiSound()
| void raylib::helper::AudioHelper::stopMultiSound |
( |
| ) |
|
|
static |
Stop any sound playing (using multichannel buffer pool)
The documentation for this class was generated from the following files: