Audaspace 1.5.0
A high level audio library.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
VolumeStorage Class Reference

This class stores a volume value and allows to change if for a number of sounds in one go. More...

#include <VolumeStorage.h>

Public Member Functions

 VolumeStorage ()
 Creates a new VolumeStorage instance with volume 1.
 
 VolumeStorage (float volume)
 Creates a VolumeStorage instance with an initial value.
 
float getVolume ()
 Retrieves the current volume value.
 
void setVolume (float volume)
 Changes the volume value.
 

Detailed Description

This class stores a volume value and allows to change if for a number of sounds in one go.

Constructor & Destructor Documentation

◆ VolumeStorage()

VolumeStorage::VolumeStorage ( float volume)

Creates a VolumeStorage instance with an initial value.

Parameters
volumeThe value of the volume.

Member Function Documentation

◆ getVolume()

float VolumeStorage::getVolume ( )

Retrieves the current volume value.

Returns
The current volume.

◆ setVolume()

void VolumeStorage::setVolume ( float volume)

Changes the volume value.

Parameters
volumeThe new value for the volume.

The documentation for this class was generated from the following file: