DoopelPonger
Public Member Functions | Protected Member Functions | List of all members
AudioSelector Class Referenceabstract

Abstract class used to play sound effects. More...

Inheritance diagram for AudioSelector:
Inheritance graph
[legend]
Collaboration diagram for AudioSelector:
Collaboration graph
[legend]

Public Member Functions

abstract void PlayClip (float volume)
 Select a sound effect to play. More...
 

Protected Member Functions

PlayOnceAudio InstantiatePlayOnceAudio (PlayOnceAudio prefab)
 

Detailed Description

Abstract class used to play sound effects.

There are several different types of ways to play sound effects, playing similar sounds randomly from a list, changing the pitch of a single sound, etc. Any way to play sound effects should implement this class.

Member Function Documentation

◆ InstantiatePlayOnceAudio()

PlayOnceAudio AudioSelector.InstantiatePlayOnceAudio ( PlayOnceAudio  prefab)
protected

◆ PlayClip()

abstract void AudioSelector.PlayClip ( float  volume)
pure virtual

Select a sound effect to play.

Parameters
volumeVolume to play a sound effect. Will always be between 0 and 1.

Implemented in PitchShiftAudioSelector, and RandomClipAudioSelector.


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