Skip to content

Commit 9e724c9

Browse files
🗑️ Depreciated normalizationFactor
1 parent 5773b49 commit 9e724c9

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
- Fixed [#171](https://github.com/SimformSolutionsPvtLtd/audio_waveforms/issues/171) - Do not call `notifyListeners()` when disposed
44
- 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)
5+
- Depreciated `normalizationFactor` as it is legacy normalization feature.
56

67
## 1.0.3
78

lib/src/controllers/recorder_controller.dart

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import 'package:flutter/material.dart';
77
import '/src/base/utils.dart';
88
import 'player_controller.dart';
99

10+
// ignore_for_file: deprecated_member_use_from_same_package
1011
class RecorderController extends ChangeNotifier {
1112
final List<double> _waveData = [];
1213

@@ -23,11 +24,12 @@ class RecorderController extends ChangeNotifier {
2324

2425
int? bitRate;
2526

26-
/// **Important**: This is legacy normalizationFactor which was removed
27-
/// in 1.0.0 release. Only use this if you are using legacy normalization.
28-
///
2927
/// Db we get from native is too high so in Android it the value is
30-
/// subtracted and in IOS value added
28+
/// subtracted and in IOS value added.
29+
@Deprecated(
30+
'\nThis is legacy normalizationFactor which was removed'
31+
' in 1.0.0 release. Only use this if you are using legacy normalization',
32+
)
3133
double normalizationFactor = Platform.isAndroid ? 60 : 40;
3234

3335
/// Current maximum peak power for ios and peak amplitude android.

0 commit comments

Comments
 (0)