From dd73f9b8056d494ca6be02a1ebf3500345788ebb Mon Sep 17 00:00:00 2001 From: Giga Date: Tue, 3 Oct 2023 17:29:40 +1300 Subject: [PATCH] Fix the microphone level meter --- src/components/AudioLevel.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/AudioLevel.vue b/src/components/AudioLevel.vue index 5f2a352a..05f4ec98 100644 --- a/src/components/AudioLevel.vue +++ b/src/components/AudioLevel.vue @@ -42,7 +42,7 @@ > @@ -60,10 +60,10 @@ export default defineComponent({ level: { type: Number, required: false } }, - setup() { - return { - AudioIO - }; + computed: { + height(): string { + return `${this.level ?? AudioIO.inputLevel.value}%`; + } } });