feat(audio): use VHQ settings for SoXR resampling

This commit is contained in:
zarzet
2026-07-25 15:58:42 +07:00
parent 19787ed461
commit 1cfda41ef2
3 changed files with 29 additions and 1 deletions
+12
View File
@@ -44,6 +44,18 @@ void main() {
expect(swrHighPass.normalizedDither, 'triangular_hp');
expect(swrHighPass.hasDither, isTrue);
});
test('uses VHQ and a 95 percent passband only for SoXR', () {
const soxr = LosslessConversionProcessing(resampler: 'soxr');
const swr = LosslessConversionProcessing(resampler: 'swr');
expect(losslessResamplerFilterOptions(soxr), [
'resampler=soxr',
'precision=28',
'cutoff=0.95',
]);
expect(losslessResamplerFilterOptions(swr), ['resampler=swr']);
});
});
group('kept conversion output identity', () {