feat: add audio normalization #164

This commit is contained in:
Kingkor Roy Tirtho 2023-09-16 23:41:47 +06:00
parent ffe8d9ca6d
commit da10ab2e29

View File

@ -24,6 +24,10 @@ abstract class AudioPlayerInterface {
) )
// _justAudio = !_mkSupportedPlatform ? ja.AudioPlayer() : null // _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) { _mkPlayer.stream.error.listen((event) {
Catcher.reportCheckedError(event, StackTrace.current); Catcher.reportCheckedError(event, StackTrace.current);
}); });