feat(client): synthesized notification sounds with settings
Short tones for joining and leaving a voice room, other participants joining and leaving, new messages outside the viewed chat, mentions, microphone mute and unmute, deafen and undeafen, server connection and loss, and errors. The tones are generated at runtime (rising motifs for arrival or enable, falling for leave or disable) with an attack and a fade-out so they never click; no third-party audio is bundled. Inside a voice room the sound is mixed into the open playback stream, otherwise a short one-shot stream is opened on the selected output device off the UI thread, capped at two at a time. While deafened nothing plays except the undeafen sound. Settings: master switch, volume and separate switches for voice room, messages and mentions, stored with the audio preferences, with a new settings section and a test button.
This commit is contained in:
parent
bf485720f5
commit
eed3e28c63
19 changed files with 1142 additions and 4 deletions
|
|
@ -43,6 +43,7 @@ impl Default for UiState {
|
|||
output_device: 0,
|
||||
output_device_id: String::new(),
|
||||
output_volume: 90.0,
|
||||
sounds: Default::default(),
|
||||
device_lists: Default::default(),
|
||||
vad_mode_chosen: false,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue