From 880cea5a564268c3d2e6ed884d92827710fb2bb5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 20 Feb 2020 03:14:17 +0900 Subject: Better sfx --- src/client/components/timeline.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client/components') diff --git a/src/client/components/timeline.vue b/src/client/components/timeline.vue index ba367bf23d..6befd7c2a7 100644 --- a/src/client/components/timeline.vue +++ b/src/client/components/timeline.vue @@ -53,7 +53,9 @@ export default Vue.extend({ (this.$refs.tl as any).prepend(note); if (this.sound) { - const audio = new Audio(`/assets/sounds/${this.$store.state.device.sfxNote}.mp3`); + const audio = new Audio(note.userId === this.$store.state.i.id + ? `/assets/sounds/${this.$store.state.device.sfxNoteMy}.mp3` + : `/assets/sounds/${this.$store.state.device.sfxNote}.mp3`); audio.volume = this.$store.state.device.sfxVolume; audio.play(); } -- cgit v1.2.3-freya