Prettier
This commit is contained in:
parent
4a452f3863
commit
eb5f0b7ae0
1 changed files with 4 additions and 2 deletions
|
@ -30,7 +30,10 @@ export function VUMeter(props: VUMeterProps) {
|
|||
useEffect(() => {
|
||||
const animate = () => {
|
||||
if (!isMic || isMicOpen) {
|
||||
const result = audioEngine.getLevels(props.source, props.stereo ? props.stereo : false);
|
||||
const result = audioEngine.getLevels(
|
||||
props.source,
|
||||
props.stereo ? props.stereo : false
|
||||
);
|
||||
setPeakL(result[0]);
|
||||
if (props.stereo) {
|
||||
setPeakR(result[1]);
|
||||
|
@ -120,7 +123,6 @@ export function VUMeter(props: VUMeterProps) {
|
|||
}
|
||||
}, [peakL, peakR, props.range, props.greenRange, props.stereo]);
|
||||
|
||||
|
||||
const { value, range, greenRange, source, ...rest } = props;
|
||||
|
||||
// Can't put boolean values into HTML DOM.
|
||||
|
|
Loading…
Reference in a new issue