Compress newgame sound, faster loading
authorBenjamin Auder <benjamin.auder@somewhere>
Tue, 3 Mar 2020 23:05:53 +0000 (00:05 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Tue, 3 Mar 2020 23:05:53 +0000 (00:05 +0100)
client/public/sounds/newgame.flac [new file with mode: 0644]
client/public/sounds/newgame.wav [deleted file]
client/src/views/Hall.vue

diff --git a/client/public/sounds/newgame.flac b/client/public/sounds/newgame.flac
new file mode 100644 (file)
index 0000000..b109d89
Binary files /dev/null and b/client/public/sounds/newgame.flac differ
diff --git a/client/public/sounds/newgame.wav b/client/public/sounds/newgame.wav
deleted file mode 100644 (file)
index f88939a..0000000
+++ /dev/null
@@ -1 +0,0 @@
-#$# git-fat 839f8d81e4e6bf135e3828be652483420d4118b8               917140
index a48997a..61ced0a 100644 (file)
@@ -896,7 +896,7 @@ export default {
         // If an error occurred, game is not added: abort
         if (!err) {
           if (this.st.settings.sound)
-            new Audio("/sounds/newgame.wav").play().catch(() => {});
+            new Audio("/sounds/newgame.flac").play().catch(() => {});
           this.$router.push("/game/" + gameInfo.id);
         }
       });