🎥 Make videos programmatically with React
fix formatting
umungobungo3082c123f5e1
diff --git a/packages/media-utils/src/get-wave-form-samples.ts b/packages/media-utils/src/get-wave-form-samples.tsindex b051e23130..70020f3a9d 100644--- a/packages/media-utils/src/get-wave-form-samples.ts+++ b/packages/media-utils/src/get-wave-form-samples.ts@@ -19,17 +19,17 @@ const filterData = (audioBuffer: Float32Array, samples: number) => {};const normalizeData = (filteredData: number[]) => {- const max = Math.max(...filteredData);-- // If the maximum amplitude is below this threshold, treat it as silence- const MINIMUM_AMPLITUDE_THRESHOLD = 0.001;-- if (max < MINIMUM_AMPLITUDE_THRESHOLD) {- return new Array(filteredData.length).fill(0);- }-- const multiplier = max ** -1;- return filteredData.map((n) => n * multiplier);+ const max = Math.max(...filteredData);++ // If the maximum amplitude is below this threshold, treat it as silence+ const MINIMUM_AMPLITUDE_THRESHOLD = 0.001;++ if (max < MINIMUM_AMPLITUDE_THRESHOLD) {+ return new Array(filteredData.length).fill(0);+ }++ const multiplier = max ** -1;+ return filteredData.map((n) => n * multiplier);};export const getWaveformSamples = (