Skip to content

namir-ui: silent meters render as "-inf dBFS" #105

Description

@ErwanLegrand

crates/namir-ui/src/meter.rs:192, 196

format!("{:.1} dBFS", reading.peak_db) renders MeterReading::SILENT's f32::NEG_INFINITY as -inf dBFS in both the bar text and the hover text -- the label shown before any audio arrives.

Fix: render as <= -60.0 dBFS (or an em dash) at or below METER_FLOOR_DB.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions