Skip to content

Commit 0f39d2b

Browse files
authored
Merge pull request #102 from shotstack/fix/audio-fade-out
fix: remove incorrect division from clip length calculation in audio …
2 parents 3f6d873 + 8671a1e commit 0f39d2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/canvas/players/audio-player.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export class AudioPlayer extends Player {
167167
return volume ?? 1;
168168
}
169169

170-
const clipLength = this.getLength() / 1000;
170+
const clipLength = this.getLength();
171171
const fade = Math.min(2, clipLength / 2);
172172

173173
if (effect === "fadeIn") {

0 commit comments

Comments
 (0)