add web audio, replaygain, visualizer (#1289)

* add web audio, replaygain, visualizer

* remove volume multiplication in gain

---------

Co-authored-by: Jeff <42182408+jeffvli@users.noreply.github.com>
This commit is contained in:
Kendall Garner
2025-11-30 03:25:12 -08:00
committed by GitHub
parent 8777da9491
commit dd3d05c813
8 changed files with 233 additions and 23 deletions
@@ -16,7 +16,9 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
{
children,
classNames,
defaultValue,
maxWidth,
onChange,
size = 'sm',
style,
variant = 'default',
@@ -38,6 +40,11 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>(
...classNames,
}}
hideControls
onChange={
onChange
? (e) => onChange(typeof e === 'number' ? e : defaultValue || e)
: undefined
}
ref={ref}
size={size}
style={{ maxWidth, width, ...style }}