Voice 8: fluxer-core::voice live room, subscriptions, volumes, speaking, chimes #69

Closed
opened 2026-11-11 12:17:34 +00:00 by charles · 0 comments
Owner

Files:

  • Create: crates/fluxer-core/src/voice/{live.rs,volumes.rs,speaking.rs}
  • Modify: voice/mod.rs, persist.rs, selectors/voice.rs
  • Test: crates/fluxer-core/tests/voice_live.rs

Interfaces:

  • Produces: LiveRoom (participants by identity, parsed with user_(\d+)_(.+); tracks; rtt: Option<Duration>; rtt history of 60 samples); ParticipantVolumes { volumes: HashMap<Snowflake, u8 /*0–200*/>, local_mutes: HashSet<Snowflake> } persisted; UserAction::{SetUserVolume { user_id, percent }, SetLocalMute { user_id, muted }}; selectors is_speaking(&App, user_id) -> bool, self_speaking(&App), voice_ping(&App).

  • Behaviour: spec §5.2 subscription policy, gain rule, speaking rule, chimes. TrackPublished of a microphone → SetSubscribed per policy and AudioCommand::SetGain; deafen/undeafen and local mute re-evaluate every microphone publication; participant leaving removes its playback source.

  • Step 1: Write failing tests: mic_track_subscribed_when_not_deaf, deafen_unsubscribes_all_mics_and_undeafen_resubscribes, local_mute_unsubscribes_that_user_only, camera_and_screen_tracks_never_subscribed, gain_is_curve_times_output_volume, speaking_is_active_speaker_or_level_and_hidden_when_muted, join_chime_deduplicated_within_2000ms, leave_chime_for_my_channel_only, malformed_identity_is_ignored.

  • Step 2–5: FAIL → implement → PASS → commit feat(core): live room, subscriptions, volumes and speaking.

Plan: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/plans/2026-11-11-voice.md
Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-voice-design.md

**Files:** - Create: `crates/fluxer-core/src/voice/{live.rs,volumes.rs,speaking.rs}` - Modify: `voice/mod.rs`, `persist.rs`, `selectors/voice.rs` - Test: `crates/fluxer-core/tests/voice_live.rs` **Interfaces:** - Produces: `LiveRoom` (participants by identity, parsed with `user_(\d+)_(.+)`; tracks; `rtt: Option<Duration>`; rtt history of 60 samples); `ParticipantVolumes { volumes: HashMap<Snowflake, u8 /*0–200*/>, local_mutes: HashSet<Snowflake> }` persisted; `UserAction::{SetUserVolume { user_id, percent }, SetLocalMute { user_id, muted }}`; selectors `is_speaking(&App, user_id) -> bool`, `self_speaking(&App)`, `voice_ping(&App)`. - Behaviour: spec §5.2 subscription policy, gain rule, speaking rule, chimes. `TrackPublished` of a microphone → `SetSubscribed` per policy and `AudioCommand::SetGain`; deafen/undeafen and local mute re-evaluate every microphone publication; participant leaving removes its playback source. - [ ] **Step 1: Write failing tests**: `mic_track_subscribed_when_not_deaf`, `deafen_unsubscribes_all_mics_and_undeafen_resubscribes`, `local_mute_unsubscribes_that_user_only`, `camera_and_screen_tracks_never_subscribed`, `gain_is_curve_times_output_volume`, `speaking_is_active_speaker_or_level_and_hidden_when_muted`, `join_chime_deduplicated_within_2000ms`, `leave_chime_for_my_channel_only`, `malformed_identity_is_ignored`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(core): live room, subscriptions, volumes and speaking`. Plan: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/plans/2026-11-11-voice.md Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-voice-design.md
charles added this to the Voice milestone 2026-11-11 12:17:34 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#69
No description provided.