Skip to content

Commit

Permalink
Fix the microphone level meter
Browse files Browse the repository at this point in the history
  • Loading branch information
Gigabyte5671 committed Oct 3, 2023
1 parent e49d1fa commit dd73f9b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/AudioLevel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
>
<span
:class="`text-${color ?? 'primary'}`"
:style="{ height: `${level ?? AudioIO.inputLevel}%` }"
:style="{ height }"
></span>
</div>
</template>
Expand All @@ -60,10 +60,10 @@ export default defineComponent({
level: { type: Number, required: false }
},

setup() {
return {
AudioIO
};
computed: {
height(): string {
return `${this.level ?? AudioIO.inputLevel.value}%`;
}
}
});
</script>

0 comments on commit dd73f9b

Please sign in to comment.