ClockStone Audio Toolkit for Unity - Documentation
AudioControllerStop Method (String, Single) |
Stops all playing audio items with name audioID with a fade-out.
Namespace: (Default Namespace)
Assembly: AudioToolkit (in AudioToolkit.dll) Version: 8.2.0.0 (8.2.0.0)
Syntax
C#
public static bool Stop( string audioID, float fadeOutLength )
Parameters
- audioID
- Type: SystemString
The audio ID. - fadeOutLength
- Type: SystemSingle
The fade out time. If a negative value is specified, the subitem's FadeOut value is taken.
Return Value
Type: BooleanReturn true if any audio was stopped.
See Also