Skip to content

lobby voice: volume, speaking, ducking #380

Description

@aaylward

Follow-up to #369. #375 shipped the mesh, mute, listen-only, refusals and the command menu entries. Still to do:

  • Per-peer volume: add a GainNode per peer and a control for it in the voice row.
  • Speaking indicator: compute AnalyserNode RMS per peer and for the local mic. Mark who is speaking in the panel. Make the avatar label glow in the world while its player talks.
  • Music ducking: lower AudioSystem's music while anyone is speaking. At minimum, check that voice and music don't fight each other today.

The last two share an analyser: a peer's RMS drives both the indicator and the duck.

Later

  • Spatial audio: position a PannerNode per peer from the world's playerMoved.
  • Push-to-talk on a hotkey, bound through bindHotkey.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions