Skip to content

Commit

Permalink
🗑️ Depreciated normalizationFactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ujas-Majithiya authored and ujas-m-simformsolutions committed Apr 14, 2023
1 parent 5773b49 commit 9e724c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 6 additions & 4 deletions lib/src/controllers/recorder_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<double> _waveData = [];

Expand All @@ -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.
Expand Down

0 comments on commit 9e724c9

Please sign in to comment.