Skip to content

Commit

Permalink
feat: add audio normalization #164
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Sep 16, 2023
1 parent ffe8d9c commit da10ab2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/services/audio_player/audio_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ abstract class AudioPlayerInterface {
)
// _justAudio = !_mkSupportedPlatform ? ja.AudioPlayer() : null
{
//? Normalizing the audio
(_mkPlayer.platform as mk.NativePlayer)
.setProperty('af', 'dynaudnorm=g=5:f=250:r=0.9:p=0.5');

_mkPlayer.stream.error.listen((event) {
Catcher.reportCheckedError(event, StackTrace.current);
});
Expand Down

0 comments on commit da10ab2

Please sign in to comment.