mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-18 02:42:34 +01:00
chore: Follow up wrong amplitude
This commit is contained in:
parent
7ddd7ad39a
commit
e0d4798fd8
@ -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;
|
||||
|
@ -98,7 +98,7 @@ class _RecordingDialogState extends State<RecordingDialog> {
|
||||
: (amplitudeTimeline.length / waveCount).round();
|
||||
final waveform = <int>[];
|
||||
for (var i = 0; i < amplitudeTimeline.length; i += step) {
|
||||
waveform.add((amplitudeTimeline[i] / waveCount * 1024).round());
|
||||
waveform.add((amplitudeTimeline[i] / 100 * 1024).round());
|
||||
}
|
||||
Navigator.of(context, rootNavigator: false).pop<RecordingResult>(
|
||||
RecordingResult(
|
||||
|
Loading…
Reference in New Issue
Block a user