Everloop
Public Member Functions | Public Attributes | Properties | List of all members
EverloopController Class Reference

Inherits MonoBehaviour.

Public Member Functions

virtual void PlayAll ()
 Play all layers that are on the same GameObject as this component. More...
 
virtual void PlayAll (float fadeInDuration, bool ignoreTimeScale=true)
 Play all layers that are on the same GameObject as this component. More...
 
virtual void StopAll ()
 Stop all currently playing layers. More...
 
virtual void StopAll (float fadeOutDuration, bool ignoreTimeScale=true)
 Stop all currently playing layers. More...
 
virtual void PlayStopAll (bool fadeInOut=true)
 Toggle between on and off of all layers. More...
 
virtual void StartAutopilot ()
 Automatically cross-fade between different layers. Autopilot uses properties of this component. More...
 
virtual void StartAutopilot (int numInitTracks, float fadeInDuration=3f, bool ignoreTimeScale=true)
 Automatically cross-fade between different layers. Autopilot uses properties of this component. More...
 
virtual void StopAutopilot ()
 Stop automatically cross-fade layers. More...
 
virtual void FadeOutAll (float duration=1f, bool ignoreTimeScale=true)
 Gradually decrease volume of all currently playing layers. More...
 
virtual void FadeInLayer (AudioSource layer, float duration=1f, bool ignoreTimeScale=true)
 Linearly fade in a specific layer. More...
 
virtual void FadeOutLayer (AudioSource layer, float duration=1f, bool ignoreTimeScale=true)
 Linearly fade out a specific layer. More...
 
virtual void RandomizeLocations (bool includePlaying=false)
 Put the play time into a random location of each layer. This is useful to randomize layers before starting playback. More...
 
virtual void PlayRandom (int numTracks, float fadeInDuration, bool ignoreTimeScale=true)
 Play a number of random layers. More...
 

Public Attributes

bool fadeInOnStart = false
 
float masterFadeDuration = 1f
 
bool enableAutopilot = false
 
int numActiveTracks = 3
 
bool changeTracksAutomatically = true
 
float trackFadeInDuration = 5f
 
float trackFadeOutDuration = 5f
 
float avgFadeTimeout = 15f
 
float fadeTimeoutVariance = 3f
 
int trackNumberVariance = 2
 
bool verbose = false
 
bool showDetailedInfo
 

Properties

float volume [get, set]
 Volume of all tracks in one setting. More...
 
List< AudioSource > tracks [get]
 

Member Function Documentation

virtual void EverloopController.FadeInLayer ( AudioSource  layer,
float  duration = 1f,
bool  ignoreTimeScale = true 
)
virtual

Linearly fade in a specific layer.

Parameters
layerAudioSource of the new layer.
durationDuration of fade in.
ignoreTimeScaleDuration of fade in ignores Time.timeScale.
virtual void EverloopController.FadeOutAll ( float  duration = 1f,
bool  ignoreTimeScale = true 
)
virtual

Gradually decrease volume of all currently playing layers.

Parameters
durationDuration of fade out in seconds.
ignoreTimeScaleDuration of fade out ignores Time.timeScale.
virtual void EverloopController.FadeOutLayer ( AudioSource  layer,
float  duration = 1f,
bool  ignoreTimeScale = true 
)
virtual

Linearly fade out a specific layer.

Parameters
layerAudioSource of the layer.
durationDuration of fade out.
ignoreTimeScaleDuration of fade out ignores Time.timeScale.
virtual void EverloopController.PlayAll ( )
virtual

Play all layers that are on the same GameObject as this component.

virtual void EverloopController.PlayAll ( float  fadeInDuration,
bool  ignoreTimeScale = true 
)
virtual

Play all layers that are on the same GameObject as this component.

Parameters
fadeInDurationDuration of volume increase in seconds.
ignoreTimeScaleDuration of fade in ignores Time.timeScale.
virtual void EverloopController.PlayRandom ( int  numTracks,
float  fadeInDuration,
bool  ignoreTimeScale = true 
)
virtual

Play a number of random layers.

Parameters
numTracksNumber of layers to play.
fadeInDurationDuration of linear fade in of the playback in seconds.
ignoreTimeScaleDuration of fade in ignores Time.timeScale.
virtual void EverloopController.PlayStopAll ( bool  fadeInOut = true)
virtual

Toggle between on and off of all layers.

Parameters
fadeInOutGradually change volume when starting/stopping sounds.
virtual void EverloopController.RandomizeLocations ( bool  includePlaying = false)
virtual

Put the play time into a random location of each layer. This is useful to randomize layers before starting playback.

Parameters
includePlaying
virtual void EverloopController.StartAutopilot ( )
virtual

Automatically cross-fade between different layers. Autopilot uses properties of this component.

virtual void EverloopController.StartAutopilot ( int  numInitTracks,
float  fadeInDuration = 3f,
bool  ignoreTimeScale = true 
)
virtual

Automatically cross-fade between different layers. Autopilot uses properties of this component.

Parameters
numInitTracksNumber of tracks to play initially. If numInitTracks is -1, activeTrackNumber will be used instead.
fadeInDurationDuration of volume increase in seconds.
ignoreTimeScaleDuration of fade in ignores Time.timeScale.
virtual void EverloopController.StopAll ( )
virtual

Stop all currently playing layers.

virtual void EverloopController.StopAll ( float  fadeOutDuration,
bool  ignoreTimeScale = true 
)
virtual

Stop all currently playing layers.

Parameters
fadeOutDurationDuration of volume decrease in seconds.
ignoreTimeScaleDuration of fade out ignores Time.timeScale.
virtual void EverloopController.StopAutopilot ( )
virtual

Stop automatically cross-fade layers.

Property Documentation

float EverloopController.volume
getset

Volume of all tracks in one setting.

Returns
Master volume of Everloop.

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