MCPcopy Create free account
hub / github.com/audacity/audacity / ToDB

Function ToDB

src/widgets/MeterPanel.cpp:888–896  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886}
887
888static float ToDB(float v, float range)
889{
890 double db;
891 if (v > 0)
892 db = LINEAR_TO_DB(fabs(v));
893 else
894 db = -999;
895 return ClipZeroToOne((db + range) / range);
896}
897
898void MeterPanel::UpdateDisplay(
899 unsigned numChannels, int numFrames, const float *sampleData)

Callers 1

OnMeterUpdateMethod · 0.85

Calls 1

ClipZeroToOneFunction · 0.85

Tested by

no test coverage detected