react-hifi
Version:
A set of react components wich provides simple abstraption to manipulate HTML5 AudioContext API (Equalizer, visualisation, stereo, basic controls)
14 lines (13 loc) • 647 B
TypeScript
import { Plugin } from '../Plugin';
export interface VolumePluginProps {
/** a number between 0 and 100 */
value: number;
}
export declare class VolumePlugin implements Plugin<VolumePluginProps, GainNode> {
constructor();
shouldNotUpdate(prevProps: VolumePluginProps, nextProps: VolumePluginProps): boolean;
createNode(audioContext: AudioContext, props: VolumePluginProps): GainNode;
updateNode(node: GainNode, { value }: VolumePluginProps): void;
}
declare const _default: import("react").FunctionComponent<VolumePluginProps & import("../_lib/plugin-factory").PluginProps<GainNode>>;
export default _default;