Table of Contents

Class AudioSourcePoolManager

Namespace
CodeBase.SoundSystem.Core
Assembly
4Experience.CodeBase.SoundSystem.Runtime.dll
[Serializable]
public class AudioSourcePoolManager : ExtendedMonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
AudioSourcePoolManager
Extension Methods

Fields

PoolsDictionary

private Dictionary<SoundType, Queue<AudioSource>> PoolsDictionary

Field Value

Dictionary<SoundType, Queue<AudioSource>>

Methods

GetObject(AudioSource, SoundType)

public AudioSource GetObject(AudioSource template, SoundType type)

Parameters

template AudioSource
type SoundType

Returns

AudioSource

InstantiateAudioSource(AudioSource)

private AudioSource InstantiateAudioSource(AudioSource template)

Parameters

template AudioSource

Returns

AudioSource

IsElementsInPool(SoundType)

private bool IsElementsInPool(SoundType type)

Parameters

type SoundType

Returns

bool

PreloadAudioSourceDataPool(AudioSourceGroupData)

internal void PreloadAudioSourceDataPool(AudioSourceGroupData sourceDataToInitialize)

Parameters

sourceDataToInitialize AudioSourceGroupData

ReturnObjectToPool(AudioSource, SoundType)

public void ReturnObjectToPool(AudioSource audioObjectToReturn, SoundType type)

Parameters

audioObjectToReturn AudioSource
type SoundType