mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-08-14 07:00:19 +02:00
feat: enhanced audio analysis with loudness, clipping, and spectral cutoff
Audio Analysis Enhancements: - Display codec name and container format - Show decoded sample format (s16, s32, fltp, etc.) - Add LUFS integrated loudness measurement (broadcast standard) - Add true peak measurement (dBTP) - Detect and count clipping samples per channel - Estimate spectral cutoff frequency (helps detect fake upscales) - Show per-channel statistics (Peak, RMS, DR, Clip count) UI Improvements: - MetricChip now handles long text with ellipsis - Constrained max width for better layout Cache version bumped to 4 to force rescan with new metrics.
This commit is contained in:
@@ -428,23 +428,20 @@ void main() {
|
||||
});
|
||||
|
||||
group('audio conversion utils', () {
|
||||
test('detects Dolby formats from stored scan format before file extension', () {
|
||||
expect(
|
||||
convertibleAudioSourceFormat(
|
||||
storedFormat: 'eac3',
|
||||
filePath: 'content://media/song.m4a',
|
||||
),
|
||||
'EAC3',
|
||||
);
|
||||
expect(
|
||||
convertibleAudioSourceFormat(fileName: 'Song.ac-3'),
|
||||
'AC3',
|
||||
);
|
||||
expect(
|
||||
convertibleAudioSourceFormat(storedFormat: 'ac4'),
|
||||
'AC4',
|
||||
);
|
||||
});
|
||||
test(
|
||||
'detects Dolby formats from stored scan format before file extension',
|
||||
() {
|
||||
expect(
|
||||
convertibleAudioSourceFormat(
|
||||
storedFormat: 'eac3',
|
||||
filePath: 'content://media/song.m4a',
|
||||
),
|
||||
'EAC3',
|
||||
);
|
||||
expect(convertibleAudioSourceFormat(fileName: 'Song.ac-3'), 'AC3');
|
||||
expect(convertibleAudioSourceFormat(storedFormat: 'ac4'), 'AC4');
|
||||
},
|
||||
);
|
||||
|
||||
test('allows Dolby sources only for lossy batch conversion targets', () {
|
||||
expect(
|
||||
|
||||
Reference in New Issue
Block a user