Title Description
LoadMusic 

Loads a music sample for playback, usually through streaming. Long ambient sound effects should...

GetGlobalVolume 

Returns the global volume.

  • 0.0f for complete silence...
IsSamplePlaying 

Returns true if the sample is playing.

if...
LoadSoundEffect 

Loads a sound effect sample. Unlike LoadMusic, this function loads the entire sound...

LoopSample 

Toggles the sound or music looping.

void onSceneCreated()
{
   ...
PauseSample 

Pauses a sample playback.

if (DoPauseGameStuff())
{
   ...
PlaySample 

Plays a preloaded audio sample.

Example:

void onSceneCreated()
{
   ...
SampleExists 

Returns true if the given sound effect sample has already been...

SetGlobalVolume 

Sets the global volume. 0.0f means complete silence and 1.0f means full...

SetSamplePan 

Set sample pan.

  • -1.0 completely to the...
SetSampleSpeed 

Sets the sample playback frequency scale. Some systems have software or hardware limitations that...

SetSampleVolume 

Sets the sample volume.

  • 0.0f completely...
StopSample 

Stops an audio sample playback.

Example:

void DoGameOverStuff()
{
   ...