diff --git a/src/js/commandline-lists.js b/src/js/commandline-lists.js index 1cd6ab663..3b5d490ee 100644 --- a/src/js/commandline-lists.js +++ b/src/js/commandline-lists.js @@ -917,7 +917,7 @@ let commandsSoundOnClick = { }, { id: "setSoundOnClick1", - display: "1", + display: "click", configValue: "1", exec: () => { UpdateConfig.setPlaySoundOnClick("1"); @@ -926,7 +926,7 @@ let commandsSoundOnClick = { }, { id: "setSoundOnClick2", - display: "2", + display: "beep", configValue: "2", exec: () => { UpdateConfig.setPlaySoundOnClick("2"); @@ -935,7 +935,7 @@ let commandsSoundOnClick = { }, { id: "setSoundOnClick3", - display: "3", + display: "pop", configValue: "3", exec: () => { UpdateConfig.setPlaySoundOnClick("3"); @@ -944,7 +944,7 @@ let commandsSoundOnClick = { }, { id: "setSoundOnClick4", - display: "4", + display: "nk creams", configValue: "4", exec: () => { UpdateConfig.setPlaySoundOnClick("4"); @@ -953,13 +953,31 @@ let commandsSoundOnClick = { }, { id: "setSoundOnClick5", - display: "5", + display: "typewriter", configValue: "5", exec: () => { UpdateConfig.setPlaySoundOnClick("5"); Sound.playClick(Config.playSoundOnClick); }, }, + { + id: "setSoundOnClick6", + display: "osu", + configValue: "6", + exec: () => { + UpdateConfig.setPlaySoundOnClick("6"); + Sound.playClick(Config.playSoundOnClick); + }, + }, + { + id: "setSoundOnClick7", + display: "hitmarker", + configValue: "7", + exec: () => { + UpdateConfig.setPlaySoundOnClick("7"); + Sound.playClick(Config.playSoundOnClick); + }, + }, ], }; diff --git a/src/js/sound.js b/src/js/sound.js index 28ce0c061..d699838e5 100644 --- a/src/js/sound.js +++ b/src/js/sound.js @@ -169,6 +169,52 @@ export function init() { counter: 0, }, ], + 6: [ + { + sounds: [ + new Howl({ src: "../sound/click6/click6_1.wav" }), + new Howl({ src: "../sound/click6/click6_11.wav" }), + ], + counter: 0, + }, + { + sounds: [ + new Howl({ src: "../sound/click6/click6_2.wav" }), + new Howl({ src: "../sound/click6/click6_22.wav" }), + ], + counter: 0, + }, + { + sounds: [ + new Howl({ src: "../sound/click6/click6_3.wav" }), + new Howl({ src: "../sound/click6/click6_33.wav" }), + ], + counter: 0, + }, + ], + 7: [ + { + sounds: [ + new Howl({ src: "../sound/click7/click7_1.wav" }), + new Howl({ src: "../sound/click7/click7_11.wav" }), + ], + counter: 0, + }, + { + sounds: [ + new Howl({ src: "../sound/click7/click7_2.wav" }), + new Howl({ src: "../sound/click7/click7_22.wav" }), + ], + counter: 0, + }, + { + sounds: [ + new Howl({ src: "../sound/click7/click7_3.wav" }), + new Howl({ src: "../sound/click7/click7_33.wav" }), + ], + counter: 0, + }, + ], }; } diff --git a/static/index.html b/static/index.html index 062935f22..461cbc19f 100644 --- a/static/index.html +++ b/static/index.html @@ -2465,7 +2465,7 @@
-
+

play sound on click

Plays a short sound when you press a key. @@ -2485,7 +2485,7 @@ tabindex="0" onclick="this.blur();" > - 1 + click
- 2 + beep
- 3 + pop
- 4 + nk creams
- 5 + typewriter +
+
+ osu +
+
+ hitmarker
diff --git a/static/sound/click6/click6_1.wav b/static/sound/click6/click6_1.wav new file mode 100644 index 000000000..31da54559 Binary files /dev/null and b/static/sound/click6/click6_1.wav differ diff --git a/static/sound/click6/click6_11.wav b/static/sound/click6/click6_11.wav new file mode 100644 index 000000000..31da54559 Binary files /dev/null and b/static/sound/click6/click6_11.wav differ diff --git a/static/sound/click6/click6_2.wav b/static/sound/click6/click6_2.wav new file mode 100644 index 000000000..31da54559 Binary files /dev/null and b/static/sound/click6/click6_2.wav differ diff --git a/static/sound/click6/click6_22.wav b/static/sound/click6/click6_22.wav new file mode 100644 index 000000000..31da54559 Binary files /dev/null and b/static/sound/click6/click6_22.wav differ diff --git a/static/sound/click6/click6_3.wav b/static/sound/click6/click6_3.wav new file mode 100644 index 000000000..31da54559 Binary files /dev/null and b/static/sound/click6/click6_3.wav differ diff --git a/static/sound/click6/click6_33.wav b/static/sound/click6/click6_33.wav new file mode 100644 index 000000000..31da54559 Binary files /dev/null and b/static/sound/click6/click6_33.wav differ diff --git a/static/sound/click7/click7_1.wav b/static/sound/click7/click7_1.wav new file mode 100644 index 000000000..ed6f99cdd Binary files /dev/null and b/static/sound/click7/click7_1.wav differ diff --git a/static/sound/click7/click7_11.wav b/static/sound/click7/click7_11.wav new file mode 100644 index 000000000..ed6f99cdd Binary files /dev/null and b/static/sound/click7/click7_11.wav differ diff --git a/static/sound/click7/click7_2.wav b/static/sound/click7/click7_2.wav new file mode 100644 index 000000000..ed6f99cdd Binary files /dev/null and b/static/sound/click7/click7_2.wav differ diff --git a/static/sound/click7/click7_22.wav b/static/sound/click7/click7_22.wav new file mode 100644 index 000000000..ed6f99cdd Binary files /dev/null and b/static/sound/click7/click7_22.wav differ diff --git a/static/sound/click7/click7_3.wav b/static/sound/click7/click7_3.wav new file mode 100644 index 000000000..ed6f99cdd Binary files /dev/null and b/static/sound/click7/click7_3.wav differ diff --git a/static/sound/click7/click7_33.wav b/static/sound/click7/click7_33.wav new file mode 100644 index 000000000..ed6f99cdd Binary files /dev/null and b/static/sound/click7/click7_33.wav differ