Better sfx
This commit is contained in:
parent
e7205d9cc2
commit
880cea5a56
9 changed files with 20 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue