Add sound notifications for connect/disconnect, join/leave, chat, and poke

New Sounds options panel (Extras > Optionen > Sounds) with a master
enable toggle, volume control, and per-event upload/test/reset. Falls
back to synthesized soft two-note chimes when no custom file is set.
Sounds are routed through the same output device as voice playback.

Custom .ts3soundpack (ZIP+XML) import is left for later - this covers
the simpler per-event custom-file approach first.
This commit is contained in:
Moepchi committed 2026-07-30 22:58:53 +02:00
1 parent 3881742338
commit 7a69d8602c
4 files changed
+419 -3

No files matched your search

+34
View File
@@ -118,6 +118,7 @@ const translations: Record<Lang, Record<string, string>> = {
"options.section.sicherheit": "Sicherheit",
"options.section.nachrichten": "Nachrichten",
"options.section.meldungen": "Meldungen",
"options.section.sounds": "Sounds",
"app.title": "Anwendung",
"app.subtitle": "Allgemeine Anwendungseinstellungen",
@@ -197,6 +198,22 @@ const translations: Record<Lang, Record<string, string>> = {
"connectError.dismiss": "Schließen",
"dialog.close": "Schließen",
"sounds.title": "Sounds",
"sounds.subtitle": "Sound-Benachrichtigungen für Ereignisse festlegen",
"sounds.enable": "Sounds aktivieren",
"sounds.volume": "Lautstärke",
"sounds.event.connect": "Verbunden",
"sounds.event.disconnect": "Getrennt",
"sounds.event.clientJoin": "Client kommt",
"sounds.event.clientLeave": "Client geht",
"sounds.event.message": "Nachricht empfangen",
"sounds.event.poke": "Anstupsen erhalten",
"sounds.default": "Standard",
"sounds.custom": "Eigene Datei: {name}",
"sounds.test": "▶ Testen",
"sounds.upload": "Hochladen",
"sounds.reset": "Zurücksetzen",
},
en: {
"menu.connections": "Connections",
@@ -306,6 +323,7 @@ const translations: Record<Lang, Record<string, string>> = {
"options.section.sicherheit": "Security",
"options.section.nachrichten": "Notifications",
"options.section.meldungen": "Messages",
"options.section.sounds": "Sounds",
"app.title": "Application",
"app.subtitle": "General application settings",
@@ -385,6 +403,22 @@ const translations: Record<Lang, Record<string, string>> = {
"connectError.dismiss": "Dismiss",
"dialog.close": "Close",
"sounds.title": "Sounds",
"sounds.subtitle": "Configure sound notifications for events",
"sounds.enable": "Enable sounds",
"sounds.volume": "Volume",
"sounds.event.connect": "Connected",
"sounds.event.disconnect": "Disconnected",
"sounds.event.clientJoin": "Client joins",
"sounds.event.clientLeave": "Client leaves",
"sounds.event.message": "Message received",
"sounds.event.poke": "Poke received",
"sounds.default": "Default",
"sounds.custom": "Custom file: {name}",
"sounds.test": "▶ Test",
"sounds.upload": "Upload",
"sounds.reset": "Reset",
},
};