Click or drag to resize
SoundInterfaceBehaviour Class
Interface for playing music and sound effects.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Slash.Unity.Common.SoundSoundInterfaceBehaviour

Namespace: Slash.Unity.Common.Sound
Assembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntax
public class SoundInterfaceBehaviour : MonoBehaviour

The SoundInterfaceBehaviour type exposes the following members.

Constructors
  NameDescription
Public methodSoundInterfaceBehaviour
Initializes a new instance of the SoundInterfaceBehaviour class
Top
Properties
  NameDescription
Public propertyItem
Gets or sets the audio channel of the specified type.
Top
Methods
  NameDescription
Public methodClearAudioChannel
Stops the clip being played at the specified channel, if any.
Public methodPlayAudioClip(AudioChannelType, AudioClip)
Plays the specified clip, if it's not already playing.
Public methodPlayAudioClip(AudioChannelType, AudioClip, Single)
Plays the specified clip, if it's not already playing.
Public methodPlayAudioClip(AudioChannelType, AudioClip, Single, Boolean)
Plays the specified clip, if it's not already playing.
Public methodPlayAudioClip(AudioChannelType, AudioClip, Single, Boolean, Single)
Fades to the specified clip, if it's not already playing.
Public methodPlayAudioClipWithIntroAndLoop
Fades to the specified intro clip, if it's not already playing, playing it one time, and loops the passed loop after.
Public methodPlaySoundEffect(AudioClip)
Plays the specified sound effect once.
Public methodPlaySoundEffect(AudioClip, Single)
Plays the specified sound effect once with the passed volume.
Public methodPlaySoundEffect(AudioClip, Single, Boolean)
Plays the specified sound effect with the passed volume.
Public methodStopSoundEffect
Stops the specified looping sound effect.
Top
Fields
  NameDescription
Public fieldSoundEffectSourcePrefab
Prefab for creating audio sources for sound effects.
Top
See Also