サウンド設定など

This commit is contained in:
syuilo 2020-02-20 02:40:53 +09:00
parent f456feb3ff
commit e7205d9cc2
18 changed files with 125 additions and 17 deletions

View file

@ -21,6 +21,11 @@ export default Vue.extend({
},
antenna: {
required: false
},
sound: {
type: Boolean,
required: false,
default: false,
}
},
@ -46,6 +51,12 @@ export default Vue.extend({
const prepend = note => {
(this.$refs.tl as any).prepend(note);
if (this.sound) {
const audio = new Audio(`/assets/sounds/${this.$store.state.device.sfxNote}.mp3`);
audio.volume = this.$store.state.device.sfxVolume;
audio.play();
}
};
const onUserAdded = () => {