earshot_level 1.0.0
earshot_level: ^1.0.0 copied to clipboard
Pure Dart sound level metering for earshot: A, C and Z weighting, Fast and Slow response, Leq and calibration.
Changelog #
1.0.0 #
- First stable release. The public API follows semantic versioning from now on: breaking changes only in a major version (ADR 0021).
- Breaking: rename
WeightingtoFrequencyWeighting,ResponsetoTimeWeightingandCalibrationtoLevelCalibration, andLevelOptions.responsetoLevelOptions.timeWeighting.Responseclashed withpackage:httpandpackage:dio(ADR 0025).
0.1.0 #
LevelMeternow measures: it emits oneLevelReadingper non-emptyPcmChunkat 16, 44.1 and 48 kHz.- A, C and Z frequency weighting per IEC 61672-1, within ±0.5 dB of the standard's design goals at ten frequencies from 31.5 Hz to 16 kHz (to 6.3 kHz at a 16 kHz sample rate, whose Nyquist frequency is 8 kHz).
- Fast, Slow and Impulse time weighting.
- Leq over the session, the last second and the last 60 seconds.
- Calibration offset added to every level.
- Without calibration, 0 dB is the level of a full-scale sine. Digital silence reads
LevelReading.floorDb(-200 dB) plus the calibration offset, never negative infinity. - Breaking:
LevelReadinghas two new required fields,leq1sandleq60s, which are part of==,hashCodeandtoString. Responsehas a newdecayTimeConstantfield (1.5 s forResponse.impulse, equal totimeConstantotherwise).
0.0.1 #
- Initial API preview.