![]() |
AR Design
UBC EML collab with UBC SALA - visualizing IoT data in AR
|
UAudioManagerBase provides the base functionality for UAudioManager classes. More...
Public Member Functions | |
| bool | IsLoaded (TBank bank) |
| void | LoadBank (TBank bank) |
| void | UnloadBank (TBank bank) |
| void | StopAllEvents () |
| Stops all ActiveEvents More... | |
| void | StopAllEvents (float fadeTime) |
| Fades out all of the events over fadeTime and stops once completely faded out. More... | |
| void | StopAllEvents (GameObject emitter) |
| Stops all events on a single emitter. More... | |
| void | StopAllEvents (AudioSource emitter) |
| Stops all events on one AudioSource. More... | |
Public Attributes | |
| TBank [] | DefaultBanks = null |
Protected Member Functions | |
| void | Awake () |
| void | OnDestroy () |
| virtual void | BanksChanged () |
| void | PlayContainer (ActiveEvent activeEvent) |
| Determine which rules to follow for container playback, and begin the appropriate function. More... | |
| void | StopEvent (ActiveEvent activeEvent) |
| Stop audio sources in an event, and clean up instance references. More... | |
| IEnumerator | StopEventWithFadeCoroutine (ActiveEvent activeEvent, float fadeTime) |
| Coroutine for fading out an AudioSource, and stopping the event once fade is complete. More... | |
| int | GetInstances (string eventName) |
| Return the number of instances matching the name eventName for instance limiting check. More... | |
Protected Attributes | |
| TEvent [] | Events = null |
| const float | InfiniteLoop = -1 |
| List< ActiveEvent > | ActiveEvents |
| List< TBank > | LoadedBanks |
UAudioManagerBase provides the base functionality for UAudioManager classes.
| TEvent | The type of AudioEvent being managed. |
| TBank |
The TEvent type specified must derive from AudioEvent.
| TEvent | : | AudioEvent | |
| TEvent | : | new() | |
| TBank | : | AudioBank<TEvent> | |
| TBank | : | new() |
Definition at line 18 of file UAudioManagerBase.cs.
|
protected |
Definition at line 41 of file UAudioManagerBase.cs.
|
protectedvirtual |
Reimplemented in HoloToolkit.Unity.UAudioManager.
Definition at line 61 of file UAudioManagerBase.cs.
|
protected |
Return the number of instances matching the name eventName for instance limiting check.
| eventName | The name of the event to check. |
Definition at line 682 of file UAudioManagerBase.cs.
| bool HoloToolkit.Unity.UAudioManagerBase< TEvent, TBank >.IsLoaded | ( | TBank | bank | ) |
Definition at line 65 of file UAudioManagerBase.cs.
| void HoloToolkit.Unity.UAudioManagerBase< TEvent, TBank >.LoadBank | ( | TBank | bank | ) |
Definition at line 70 of file UAudioManagerBase.cs.
|
protected |
Definition at line 56 of file UAudioManagerBase.cs.
|
protected |
Determine which rules to follow for container playback, and begin the appropriate function.
| activeEvent | The event to play. |
Definition at line 188 of file UAudioManagerBase.cs.
| void HoloToolkit.Unity.UAudioManagerBase< TEvent, TBank >.StopAllEvents | ( | ) |
Stops all ActiveEvents
Definition at line 92 of file UAudioManagerBase.cs.
| void HoloToolkit.Unity.UAudioManagerBase< TEvent, TBank >.StopAllEvents | ( | float | fadeTime | ) |
Fades out all of the events over fadeTime and stops once completely faded out.
| fadeTime | The amount of time, in seconds, to fade between current volume and 0. |
Definition at line 104 of file UAudioManagerBase.cs.
| void HoloToolkit.Unity.UAudioManagerBase< TEvent, TBank >.StopAllEvents | ( | GameObject | emitter | ) |
Stops all events on a single emitter.
Definition at line 115 of file UAudioManagerBase.cs.
| void HoloToolkit.Unity.UAudioManagerBase< TEvent, TBank >.StopAllEvents | ( | AudioSource | emitter | ) |
Stops all events on one AudioSource.
Definition at line 129 of file UAudioManagerBase.cs.
|
protected |
Stop audio sources in an event, and clean up instance references.
| activeEvent | The persistent reference to the event as long as it is playing. |
Definition at line 573 of file UAudioManagerBase.cs.
|
protected |
Coroutine for fading out an AudioSource, and stopping the event once fade is complete.
| activeEvent | The persistent reference to the event as long as it is playing. |
| fadeTime | The amount of time, in seconds, to completely fade out the sound. |
Definition at line 595 of file UAudioManagerBase.cs.
| void HoloToolkit.Unity.UAudioManagerBase< TEvent, TBank >.UnloadBank | ( | TBank | bank | ) |
Definition at line 83 of file UAudioManagerBase.cs.
|
protected |
Definition at line 27 of file UAudioManagerBase.cs.
| TBank [] HoloToolkit.Unity.UAudioManagerBase< TEvent, TBank >.DefaultBanks = null |
Definition at line 20 of file UAudioManagerBase.cs.
|
protected |
Definition at line 24 of file UAudioManagerBase.cs.
|
protected |
Definition at line 26 of file UAudioManagerBase.cs.
|
protected |
Definition at line 39 of file UAudioManagerBase.cs.