WeatherMakerLoopingAudioSource Constructor (AudioSource, Single, Single, Boolean) |
Constructor
Namespace:
DigitalRuby.WeatherMaker
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public WeatherMakerLoopingAudioSource(
AudioSource audioSource,
float startFade,
float stopFade,
bool looping = true
)
Public Sub New (
audioSource As AudioSource,
startFade As Single,
stopFade As Single,
Optional looping As Boolean = true
)
public:
WeatherMakerLoopingAudioSource(
AudioSource^ audioSource,
float startFade,
float stopFade,
bool looping = true
)
new :
audioSource : AudioSource *
startFade : float32 *
stopFade : float32 *
?looping : bool
(* Defaults:
let _looping = defaultArg looping true
*)
-> WeatherMakerLoopingAudioSource
Parameters
- audioSource
- Type: AudioSource
Audio source, will be looped automatically - startFade
- Type: SystemSingle
Start fade - seconds to reach peak sound - stopFade
- Type: SystemSingle
Stop fade - seconds to fade sound back to 0 volume when stopped - looping (Optional)
- Type: SystemBoolean
Whether to loop the audio source - default is true
See Also