SoundToolKit Ambient Source. Capable of playing multiple SoundToolKit Samples with various Play methods.
More...
|
override void | OnStkInitialized (SoundToolKitManager soundToolKitManager) |
|
override void | Play () |
| Play all the Playbacks on the Source's list. More...
|
|
override void | Stop () |
| Stops all incoming sounds from that Source. More...
|
|
void | Pause () |
| Pauses all incoming sounds from that Source. More...
|
|
void | PlaySingle (int playbackToPlayIndex=0) |
| Play a single Playback from the Source's Playback list. More...
|
|
void | PlayRange (int firstPlaybackToPlayIndex, int lastPlaybackToPlayIndex) |
| Play a specified range of Playbacks from Source's list. More...
|
|
void | PlayRandom (int firstPlaybackToRandomFromIndex=0, int? lastPlaybackToRandomFromIndex=null) |
| Play a random Playback from the specified range on the Source's Playback List (whole List by default). More...
|
|
void | StopSingle (int playbackToStopIndex=0) |
| Stop a single Playback from the Source's Playback list. More...
|
|
void | StopRange (int firstPlaybackToStopIndex, int lastPlaybackToStopIndex) |
| Stop a specified range of Playbacks from Source's list. More...
|
|
void | PauseSingle (int playbackToPauseIndex=0) |
| Pause a single Playback from the Source's Playback list. More...
|
|
void | PauseRange (int firstPlaybackToPauseIndex, int lastPlaybackToPauseIndex) |
| Pause a specified range of Playbacks from Source's list. Pauses all by default. More...
|
|
SoundToolKit Ambient Source. Capable of playing multiple SoundToolKit Samples with various Play methods.
◆ Awake()
override void SoundToolKit.Unity.SoundToolKitAmbientSource.Awake |
( |
| ) |
|
|
protectedvirtual |
◆ OnDestroy()
override void SoundToolKit.Unity.SoundToolKitAmbientSource.OnDestroy |
( |
| ) |
|
|
protectedvirtual |
◆ OnDisable()
override void SoundToolKit.Unity.SoundToolKitAmbientSource.OnDisable |
( |
| ) |
|
|
protectedvirtual |
◆ OnEnable()
override void SoundToolKit.Unity.SoundToolKitAmbientSource.OnEnable |
( |
| ) |
|
|
protectedvirtual |
◆ OnStkInitialized()
override void SoundToolKit.Unity.SoundToolKitAmbientSource.OnStkInitialized |
( |
SoundToolKitManager |
soundToolKitManager | ) |
|
|
virtual |
◆ Pause()
void SoundToolKit.Unity.SoundToolKitAmbientSource.Pause |
( |
| ) |
|
Pauses all incoming sounds from that Source.
◆ PauseRange()
void SoundToolKit.Unity.SoundToolKitAmbientSource.PauseRange |
( |
int |
firstPlaybackToPauseIndex, |
|
|
int |
lastPlaybackToPauseIndex |
|
) |
| |
Pause a specified range of Playbacks from Source's list. Pauses all by default.
◆ PauseSingle()
void SoundToolKit.Unity.SoundToolKitAmbientSource.PauseSingle |
( |
int |
playbackToPauseIndex = 0 | ) |
|
Pause a single Playback from the Source's Playback list.
- Parameters
-
playbackToPauseIndex | Index of Playback to pause. Defaults to the first Playback on the list. |
◆ Play()
override void SoundToolKit.Unity.SoundToolKitAmbientSource.Play |
( |
| ) |
|
|
virtual |
◆ PlayRandom()
void SoundToolKit.Unity.SoundToolKitAmbientSource.PlayRandom |
( |
int |
firstPlaybackToRandomFromIndex = 0 , |
|
|
int? |
lastPlaybackToRandomFromIndex = null |
|
) |
| |
Play a random Playback from the specified range on the Source's Playback List (whole List by default).
- Parameters
-
firstPlaybackToRandomFromIndex | Index of first Playback to randomize from. Defaults to the first Playback on the list. |
lastPlaybackToRandomFromIndex | Index of last Playback to randomize from. Defaults to the last Playback on the list. |
◆ PlayRange()
void SoundToolKit.Unity.SoundToolKitAmbientSource.PlayRange |
( |
int |
firstPlaybackToPlayIndex, |
|
|
int |
lastPlaybackToPlayIndex |
|
) |
| |
Play a specified range of Playbacks from Source's list.
◆ PlaySingle()
void SoundToolKit.Unity.SoundToolKitAmbientSource.PlaySingle |
( |
int |
playbackToPlayIndex = 0 | ) |
|
Play a single Playback from the Source's Playback list.
- Parameters
-
playbackToPlayIndex | Index of Playback to play by the Source. Defaults to the first Playback on the list. |
◆ Stop()
override void SoundToolKit.Unity.SoundToolKitAmbientSource.Stop |
( |
| ) |
|
|
virtual |
◆ StopRange()
void SoundToolKit.Unity.SoundToolKitAmbientSource.StopRange |
( |
int |
firstPlaybackToStopIndex, |
|
|
int |
lastPlaybackToStopIndex |
|
) |
| |
Stop a specified range of Playbacks from Source's list.
◆ StopSingle()
void SoundToolKit.Unity.SoundToolKitAmbientSource.StopSingle |
( |
int |
playbackToStopIndex = 0 | ) |
|
Stop a single Playback from the Source's Playback list.
- Parameters
-
playbackToStopIndex | Index of Playback to stop. Defaults to the first Playback on the list. |
◆ IsPlaying
override bool SoundToolKit.Unity.SoundToolKitAmbientSource.IsPlaying |
|
get |
◆ Muted
override bool? SoundToolKit.Unity.SoundToolKitAmbientSource.Muted |
|
getset |
◆ Playbacks
List of Playbacks, which consist of StkSample, Looped control, PlayOnAwake control and internal StkPlayback.
◆ Volume
override float? SoundToolKit.Unity.SoundToolKitAmbientSource.Volume |
|
getset |