useLevels
HookAPI 2The toolbar's sound levels, re-rendering every frame while it plays. With smoothing
(0 up to 1), levels rise at once and fall away gradually.
| Signature | useLevels(count?: number, options?: LevelOptions & { smoothing?: number }): readonly number[] |
|---|
| Take it from | const { useLevels } = Bundleware; |
|---|
Parameters
| Parameter | Type | Description |
|---|
count | number | Optional. |
options | LevelOptions & { smoothing?: number } | Optional. |
options.low | number | Optional. |
options.high | number | Optional. |
options.smoothing | number | Optional. |
Return Value
Availability
| Applicable versions | API 2 and higher |
|---|
| Bundleware | 0.3.0, build 2026.10.30 |
|---|