This class manages an object pool of audiosources
More...
|
virtual void | FillAudioSourcePool (int poolSize, Transform parent) |
| Fills the pool with ready-to-use audiosources More...
|
|
virtual IEnumerator | AutoDisableAudioSource (float duration, AudioSource source, AudioClip clip, bool doNotAutoRecycleIfNotDonePlaying) |
| Disables an audio source after it's done playing More...
|
|
virtual AudioSource | GetAvailableAudioSource (bool poolCanExpand, Transform parent) |
| Pulls an available audio source from the pool More...
|
|
virtual bool | FreeSound (AudioSource sourceToStop) |
| Stops an audiosource and returns it to the pool More...
|
|
|
List< AudioSource > | _pool |
|
This class manages an object pool of audiosources
◆ AutoDisableAudioSource()
virtual IEnumerator MoreMountains.Tools.MMSoundManagerAudioPool.AutoDisableAudioSource |
( |
float |
duration, |
|
|
AudioSource |
source, |
|
|
AudioClip |
clip, |
|
|
bool |
doNotAutoRecycleIfNotDonePlaying |
|
) |
| |
|
virtual |
Disables an audio source after it's done playing
- Parameters
-
- Returns
◆ FillAudioSourcePool()
virtual void MoreMountains.Tools.MMSoundManagerAudioPool.FillAudioSourcePool |
( |
int |
poolSize, |
|
|
Transform |
parent |
|
) |
| |
|
virtual |
Fills the pool with ready-to-use audiosources
- Parameters
-
◆ FreeSound()
virtual bool MoreMountains.Tools.MMSoundManagerAudioPool.FreeSound |
( |
AudioSource |
sourceToStop | ) |
|
|
virtual |
Stops an audiosource and returns it to the pool
- Parameters
-
- Returns
◆ GetAvailableAudioSource()
virtual AudioSource MoreMountains.Tools.MMSoundManagerAudioPool.GetAvailableAudioSource |
( |
bool |
poolCanExpand, |
|
|
Transform |
parent |
|
) |
| |
|
virtual |
Pulls an available audio source from the pool
- Parameters
-
- Returns
◆ _pool
List<AudioSource> MoreMountains.Tools.MMSoundManagerAudioPool._pool |
|
protected |
The documentation for this class was generated from the following file: