Raylib C++  1.0.0
Encapsulates the raylib library
Static Public Member Functions | List of all members
raylib::helper::AudioHelper Class Reference

Helper class for audio device management functions, and more. More...

#include <AudioHelper.hpp>

Collaboration diagram for raylib::helper::AudioHelper:
Collaboration graph

Static Public Member Functions

static void initAudioDevice ()
 Initialize audio device and context. More...
 
static void closeAudioDevice ()
 Close the audio device and context. More...
 
static bool isAudioDeviceReady ()
 Check if audio device has been initialized successfully. More...
 
static void setMasterVolume (float volume)
 Set master volume (listener) More...
 
static void stopMultiSound ()
 Stop any sound playing (using multichannel buffer pool) More...
 
static int getNumberOfSoundsPlaying ()
 Get the number of sounds playing in multichannel buffer pool. More...
 
static void setAudioStreamBufferSizeDefault (const int &size)
 Set the default size for new audio streams. More...
 

Detailed Description

Helper class for audio device management functions, and more.

Member Function Documentation

◆ closeAudioDevice()

void raylib::helper::AudioHelper::closeAudioDevice ( )
static

Close the audio device and context.

Here is the caller graph for this function:

◆ 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.

Here is the caller graph for this function:

◆ 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
sizethe size to set

◆ setMasterVolume()

void raylib::helper::AudioHelper::setMasterVolume ( float  volume)
static

Set master volume (listener)

Parameters
volumethe volume to set

◆ 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: