Hatch Game Engine Documentation v1.4.0
The documentation for the Hatch Game Engine
Loading...
Searching...
No Matches
Audio Class Reference

Functions for manipulating the application's audio. More...

Public Member Functions

integer GetMasterVolume ()
 Gets the master volume of the audio mixer.
integer GetMusicVolume ()
 Gets the music volume of the audio mixer.
integer GetSoundVolume ()
 Gets the sound effect volume of the audio mixer.
void SetMasterVolume (integer volume)
 Sets the master volume of the audio mixer.
void SetMusicVolume (integer volume)
 Sets the music volume of the audio mixer.
void SetSoundVolume (integer volume)
 Sets the sound effect volume of the audio mixer.

Detailed Description

Functions for manipulating the application's audio.

Member Function Documentation

◆ GetMasterVolume()

integer Audio.GetMasterVolume ( )

Gets the master volume of the audio mixer.

Returns
The master volume, from 0 to 100.

◆ GetMusicVolume()

integer Audio.GetMusicVolume ( )

Gets the music volume of the audio mixer.

Returns
The music volume, from 0 to 100.

◆ GetSoundVolume()

integer Audio.GetSoundVolume ( )

Gets the sound effect volume of the audio mixer.

Returns
The sound effect volume, from 0 to 100.

◆ SetMasterVolume()

void Audio.SetMasterVolume ( integer volume)

Sets the master volume of the audio mixer.

Parameters
volumeThe master volume, from 0 to 100.

◆ SetMusicVolume()

void Audio.SetMusicVolume ( integer volume)

Sets the music volume of the audio mixer.

Parameters
volumeThe music volume, from 0 to 100.

◆ SetSoundVolume()

void Audio.SetSoundVolume ( integer volume)

Sets the sound effect volume of the audio mixer.

Parameters
volumeThe sound effect volume, from 0 to 100.