Table of Contents

Class AudioSequenceData

Namespace
CodeBase.SoundSystem.Components
Assembly
4Experience.CodeBase.SoundSystem.Runtime.dll

Scriptable Objects, that stores one ore more audio clips in specified sequence.

[CreateAssetMenu(menuName = "4Experience/CodeBase/Sound System/AudioSequenceData")]
internal class AudioSequenceData : ExtendedScriptableObject
Inheritance
Object
ScriptableObject
AudioSequenceData
Extension Methods

Properties

ClipsCollection

public List<AudioClip> ClipsCollection { get; private set; }

Property Value

List<AudioClip>

CurrentBufferIndex

private int CurrentBufferIndex { get; set; }

Property Value

int

RepeatType

private AudioSequenceData.SequencePlayMode RepeatType { get; set; }

Property Value

AudioSequenceData.SequencePlayMode

Methods

GetContinousRandomClip()

private AudioClip GetContinousRandomClip()

Returns

AudioClip

GetNextNonRandomClip()

private AudioClip GetNextNonRandomClip()

Returns

AudioClip

GetNextRandomClip()

private AudioClip GetNextRandomClip()

Returns

AudioClip

GetSingleRandomClip()

private AudioClip GetSingleRandomClip()

Returns

AudioClip

Initialize()

public void Initialize()

IsLastClipInNonRandomSequence()

public bool IsLastClipInNonRandomSequence()

Returns

bool

IsNextClipRandom()

private bool IsNextClipRandom()

Returns

bool

ResetCurrentBufferIndex()

private void ResetCurrentBufferIndex()

TryGetNextAudioClip(out AudioClip)

public bool TryGetNextAudioClip(out AudioClip nextClip)

Parameters

nextClip AudioClip

Returns

bool