Class SoundEffectSource
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
public class SoundEffectSource : MonoBehaviour, IPoolable
- Inheritance
-
objectObjectComponentBehaviourMonoBehaviourSoundEffectSource
- Implements
- Extension Methods
Constructors
SoundEffectSource()
public SoundEffectSource()
Fields
Handle
public SoundHandle Handle
Field Value
OnSoundStopped
public Action<SoundHandle> OnSoundStopped
Field Value
- Action<SoundHandle>
Properties
DspEndTime
public double DspEndTime { get; }
Property Value
- double
DspStartTime
public double DspStartTime { get; }
Property Value
- double
IsPaused
public bool IsPaused { get; }
Property Value
- bool
IsPlaying
public bool IsPlaying { get; }
Property Value
- bool
Pitch
public float Pitch { get; set; }
Property Value
- float
RemainingPlayTime
public double RemainingPlayTime { get; }
Property Value
- double
Volume
public float Volume { get; set; }
Property Value
- float
Methods
Clear()
public void Clear()
Play(SoundEffect, double, double, float, bool)
public double Play(SoundEffect effect, double delay, double startOffset, float pitch, bool loop)
Parameters
effectSoundEffectdelaydoublestartOffsetdoublepitchfloatloopbool
Returns
- double
Stop()
public void Stop()