Skip to content

Commit

Permalink
Added duration calculation to MediaTrackAdaptor
Browse files Browse the repository at this point in the history
  • Loading branch information
isdenmois committed Jan 29, 2021
1 parent 8fd253a commit 7fd7a37
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package uk.yermak.audiobookconverter;

import uk.yermak.audiobookconverter.fx.ConverterApplication;

import java.util.List;
import java.util.Objects;

Expand Down Expand Up @@ -48,7 +50,7 @@ public int getBitrate() {

@Override
public long getDuration() {
return duration;
return (long) (duration / ConverterApplication.getContext().getSpeed());
}

@Override
Expand Down

0 comments on commit 7fd7a37

Please sign in to comment.