AudioObject.Stop Method (Single, Single)
From Audio Toolkit
|
|
| ClockStone Audio Toolkit for Unity - Documentation |
| AudioObject..::..Stop Method (Single, Single) |
| AudioObject Class See Also Send Feedback |
|
|
Stops a playing audio with fade-out at a specified time.
Namespace: (Default Namespace)
Assembly: AudioToolkit (in AudioToolkit.dll) Version: 8.0.0.0 (8.0.0.0)
Syntax
| C# |
|---|
public void Stop( float fadeOutLength, float startToFadeTime ) |
Parameters
- fadeOutLength
- Type: System..::..Single
The fade time in seconds. If a negative value is specified, the fade out as specified in the corresponding FadeOut is used
- startToFadeTime
- Type: System..::..Single
Fade out starts after startToFadeTime seconds have passed
Remarks
If the audio is already fading out the requested fade-out is combined with the existing one.