Type Alias: SoundManagerConstructorEventSubscription
ts
type SoundManagerConstructorEventSubscription =
| (...args: any[]) => void
| [(...args: any[]) => void]
| [(...args: any[]) => void, boolean];A type representing an event subscription for the SoundManager which is passed to the constructor so that they are subscribed on creation. Formats include:
- A callback function
- A tuple containing a callback function as the first element
- A tuple containing a callback function as the first element and a boolean
onceflag as the second element which indicates if the subscription should be removed after the first invocation.