diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e4dd700..24489c8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Fixed [#171](https://github.com/SimformSolutionsPvtLtd/audio_waveforms/issues/171) - Do not call `notifyListeners()` when disposed - Add `UpdateFrequency` to update reporting rate of current duration. Fixes [#118](https://github.com/SimformSolutionsPvtLtd/audio_waveforms/issues/118) & [#145](https://github.com/SimformSolutionsPvtLtd/audio_waveforms/issues/145) +- Depreciated `normalizationFactor` as it is legacy normalization feature. ## 1.0.3 diff --git a/lib/src/controllers/recorder_controller.dart b/lib/src/controllers/recorder_controller.dart index 04a376ba..0b6d8ba6 100644 --- a/lib/src/controllers/recorder_controller.dart +++ b/lib/src/controllers/recorder_controller.dart @@ -7,6 +7,7 @@ import 'package:flutter/material.dart'; import '/src/base/utils.dart'; import 'player_controller.dart'; +// ignore_for_file: deprecated_member_use_from_same_package class RecorderController extends ChangeNotifier { final List _waveData = []; @@ -23,11 +24,12 @@ class RecorderController extends ChangeNotifier { int? bitRate; - /// **Important**: This is legacy normalizationFactor which was removed - /// in 1.0.0 release. Only use this if you are using legacy normalization. - /// /// Db we get from native is too high so in Android it the value is - /// subtracted and in IOS value added + /// subtracted and in IOS value added. + @Deprecated( + '\nThis is legacy normalizationFactor which was removed' + ' in 1.0.0 release. Only use this if you are using legacy normalization', + ) double normalizationFactor = Platform.isAndroid ? 60 : 40; /// Current maximum peak power for ios and peak amplitude android.