Skip to content

Commit f39e158

Browse files
committed
refactor(sounds): remove shadowgun/oreo/reds, normalize all to -10db
1 parent aa4efdf commit f39e158

1,219 files changed

Lines changed: 1 addition & 134 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

frontend/src/html/pages/settings.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -712,18 +712,14 @@
712712
<button data-config-value="14">fist fight</button>
713713
<button data-config-value="15">rubber keys</button>
714714
<button data-config-value="16">fart</button>
715-
<button data-config-value="17">cherrymx red pbt</button>
716715
<button data-config-value="18">akko lavenders</button>
717716
<button data-config-value="19">cherrymx black abs</button>
718717
<button data-config-value="20">cherrymx black pbt</button>
719718
<button data-config-value="21">cherrymx blue abs</button>
720719
<button data-config-value="22">cherrymx blue pbt</button>
721720
<button data-config-value="23">cherrymx brown pbt</button>
722-
<button data-config-value="24">cherrymx red abs</button>
723-
<button data-config-value="25">eg oreo</button>
724721
<button data-config-value="26">kalih box white</button>
725722
<button data-config-value="27">razer green</button>
726-
<button data-config-value="28">shadowgun</button>
727723
<button data-config-value="29">tealios v2</button>
728724
<button data-config-value="30">trust gxt</button>
729725
</div>

frontend/src/ts/controllers/sound-controller.ts

Lines changed: 1 addition & 130 deletions
Original file line numberDiff line numberDiff line change
@@ -463,66 +463,6 @@ async function init(): Promise<void> {
463463
counter: 0,
464464
},
465465
],
466-
// 17: [
467-
// {
468-
// sounds: [
469-
// new Howl({ src: "../sound/cherrymx_red_pbt/1.wav" }),
470-
// new Howl({ src: "../sound/cherrymx_red_pbt/1.wav" }),
471-
// ],
472-
// counter: 0,
473-
// },
474-
// {
475-
// sounds: [
476-
// new Howl({ src: "../sound/cherrymx_red_pbt/2.wav" }),
477-
// new Howl({ src: "../sound/cherrymx_red_pbt/2.wav" }),
478-
// ],
479-
// counter: 0,
480-
// },
481-
// {
482-
// sounds: [
483-
// new Howl({ src: "../sound/cherrymx_red_pbt/3.wav" }),
484-
// new Howl({ src: "../sound/cherrymx_red_pbt/3.wav" }),
485-
// ],
486-
// counter: 0,
487-
// },
488-
// {
489-
// sounds: [
490-
// new Howl({ src: "../sound/cherrymx_red_pbt/4.wav" }),
491-
// new Howl({ src: "../sound/cherrymx_red_pbt/4.wav" }),
492-
// ],
493-
// counter: 0,
494-
// },
495-
// {
496-
// sounds: [
497-
// new Howl({ src: "../sound/cherrymx_red_pbt/5.wav" }),
498-
// new Howl({ src: "../sound/cherrymx_red_pbt/5.wav" }),
499-
// ],
500-
// counter: 0,
501-
// },
502-
// ],
503-
17: [
504-
{
505-
sounds: [
506-
new Howl({ src: "../sound/click17/click17_1.wav" }),
507-
new Howl({ src: "../sound/click17/click17_1.wav" }),
508-
],
509-
counter: 0,
510-
},
511-
{
512-
sounds: [
513-
new Howl({ src: "../sound/click17/click17_2.wav" }),
514-
new Howl({ src: "../sound/click17/click17_2.wav" }),
515-
],
516-
counter: 0,
517-
},
518-
{
519-
sounds: [
520-
new Howl({ src: "../sound/click17/click17_3.wav" }),
521-
new Howl({ src: "../sound/click17/click17_3.wav" }),
522-
],
523-
counter: 0,
524-
},
525-
],
526466
18: [
527467
{
528468
sounds: [
@@ -661,52 +601,6 @@ async function init(): Promise<void> {
661601
counter: 0,
662602
},
663603
],
664-
24: [
665-
{
666-
sounds: [
667-
new Howl({ src: "../sound/click24/click24_1.wav" }),
668-
new Howl({ src: "../sound/click24/click24_1.wav" }),
669-
],
670-
counter: 0,
671-
},
672-
{
673-
sounds: [
674-
new Howl({ src: "../sound/click24/click24_2.wav" }),
675-
new Howl({ src: "../sound/click24/click24_2.wav" }),
676-
],
677-
counter: 0,
678-
},
679-
{
680-
sounds: [
681-
new Howl({ src: "../sound/click24/click24_3.wav" }),
682-
new Howl({ src: "../sound/click24/click24_3.wav" }),
683-
],
684-
counter: 0,
685-
},
686-
],
687-
25: [
688-
{
689-
sounds: [
690-
new Howl({ src: "../sound/click25/click25_1.wav" }),
691-
new Howl({ src: "../sound/click25/click25_1.wav" }),
692-
],
693-
counter: 0,
694-
},
695-
{
696-
sounds: [
697-
new Howl({ src: "../sound/click25/click25_2.wav" }),
698-
new Howl({ src: "../sound/click25/click25_2.wav" }),
699-
],
700-
counter: 0,
701-
},
702-
{
703-
sounds: [
704-
new Howl({ src: "../sound/click25/click25_3.wav" }),
705-
new Howl({ src: "../sound/click25/click25_3.wav" }),
706-
],
707-
counter: 0,
708-
},
709-
],
710604
26: [
711605
{
712606
sounds: [
@@ -753,29 +647,6 @@ async function init(): Promise<void> {
753647
counter: 0,
754648
},
755649
],
756-
28: [
757-
{
758-
sounds: [
759-
new Howl({ src: "../sound/click28/click28_1.wav" }),
760-
new Howl({ src: "../sound/click28/click28_1.wav" }),
761-
],
762-
counter: 0,
763-
},
764-
{
765-
sounds: [
766-
new Howl({ src: "../sound/click28/click28_2.wav" }),
767-
new Howl({ src: "../sound/click28/click28_2.wav" }),
768-
],
769-
counter: 0,
770-
},
771-
{
772-
sounds: [
773-
new Howl({ src: "../sound/click28/click28_3.wav" }),
774-
new Howl({ src: "../sound/click28/click28_3.wav" }),
775-
],
776-
counter: 0,
777-
},
778-
],
779650
29: [
780651
{
781652
sounds: [
@@ -1166,7 +1037,7 @@ export async function playError(): Promise<void> {
11661037
function setVolume(val: number): void {
11671038
try {
11681039
Howler.volume(val);
1169-
} catch (e) {
1040+
} catch {
11701041
//
11711042
}
11721043
}
-56 Bytes
Binary file not shown.
-56 Bytes
Binary file not shown.
-56 Bytes
Binary file not shown.
-34 Bytes
Binary file not shown.
-34 Bytes
Binary file not shown.
-34 Bytes
Binary file not shown.
-34 Bytes
Binary file not shown.
-34 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)