@nhtio/common-vue/sounds
A module that provides sound-related utilities for web applications
Other
| Name | Description |
|---|---|
| SoundManager | - |
| DemoSoundPlayer | A type representing the public instance of the DemoSoundPlayer component. |
| Notification | A type representing the list of available notification sounds. |
| SoundManagerConstructorEventSubscription | 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 once flag as the second element which indicates if the subscription should be removed after the first invocation. |
| SoundManagerConstructorSignalSubscription | A type representing a signal 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 once flag as the second element which indicates if the subscription should be removed after the first invocation. |
| SoundManagerEvents | A map of publically subscribable events emitted by the SoundManager. |
| SoundManagerInternalBusEventMap | A map of events used internally by the SoundManager. |
| SoundManagerOptions | Options for configuring the SoundManager. |
| DemoSoundPlayer | A Vue component that provides a demo sound player interface. |
| Notification | A list of available notification sounds. |
| SoundUrls | A readonly map of notification sound names to their corresponding audio file URLs. |
Utilities
| Function | Description |
|---|---|
| isHTMLAudioElement | Type guard that checks if a value is an HTMLAudioElement. Safe to use in SSR environments. |