Skip to content

Commit

Permalink
Merge pull request #189 from vircadia/fix/audio
Browse files Browse the repository at this point in the history
Fix the microphone level meter.
  • Loading branch information
digisomni authored Oct 3, 2023
2 parents b1bf21e + dd73f9b commit 6b14ab5
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 6b14ab5

Please sign in to comment.