chore: Follow up wrong amplitude

This commit is contained in:
Krille Fear 2022-01-02 10:11:55 +01:00
commit 7f3c5b8c52
2 changed files with 2 additions and 2 deletions

View file

@ -162,7 +162,7 @@ class _AudioPlayerState extends State<AudioPlayerWidget> {
eventWaveForm.removeAt(i);
i = (i + step) % AudioPlayerWidget.wavesCount;
}
return eventWaveForm;
return eventWaveForm.map((i) => i > 1024 ? 1024 : i).toList();
}
late final List<int> waveform;