 | SoundInterfaceBehaviourPlayAudioClip Method (AudioChannelType, AudioClip, Single, Boolean, Single) |
Fades to the specified clip, if it's not already playing.
Namespace: Slash.Unity.Common.SoundAssembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntaxpublic void PlayAudioClip(
AudioChannelType channelType,
AudioClip clip,
float volume,
bool loop,
float fadeSpeed
)
Public Sub PlayAudioClip (
channelType As AudioChannelType,
clip As AudioClip,
volume As Single,
loop As Boolean,
fadeSpeed As Single
)
public:
void PlayAudioClip(
AudioChannelType channelType,
AudioClip^ clip,
float volume,
bool loop,
float fadeSpeed
)
member PlayAudioClip :
channelType : AudioChannelType *
clip : AudioClip *
volume : float32 *
loop : bool *
fadeSpeed : float32 -> unit
Parameters
- channelType
- Type: Slash.Unity.Common.SoundAudioChannelType
Channel to play the clip at. - clip
- Type: AudioClip
Music clip to play. - volume
- Type: SystemSingle
Volume to play the clip at. - loop
- Type: SystemBoolean
Whether to loop the clip or play one-shot. - fadeSpeed
- Type: SystemSingle
Speed to fade in or out with, in volume/second.
See Also