| SoundInterfaceBehaviourPlayAudioClip Method (AudioChannelType, AudioClip, Single, Boolean) |
Plays 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
Syntax public void PlayAudioClip(
AudioChannelType channelType,
AudioClip clip,
float volume,
bool loop
)
Public Sub PlayAudioClip (
channelType As AudioChannelType,
clip As AudioClip,
volume As Single,
loop As Boolean
)
public:
void PlayAudioClip(
AudioChannelType channelType,
AudioClip^ clip,
float volume,
bool loop
)
member PlayAudioClip :
channelType : AudioChannelType *
clip : AudioClip *
volume : float32 *
loop : bool -> 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.
See Also