Skip to content

Commit 17e6065

Browse files
committed
Timeline duration in seconds int -> double
1 parent 6dfa568 commit 17e6065

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Source/Processors/FileReader/ScrubberInterface.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void FullTimeline::setIntervalPosition (int pos)
129129
}
130130
}
131131

132-
int FullTimeline::getIntervalDurationInSeconds()
132+
double FullTimeline::getIntervalDurationInSeconds()
133133
{
134134
return ((stopMs - startMs) / 1000.0f);
135135
}

Source/Processors/FileReader/ScrubberInterface.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Timeline : public Component, public Timer
4040

4141
virtual int getStartInterval() { return 0; };
4242
virtual int getIntervalWidth() { return 0; };
43-
virtual int getIntervalDurationInSeconds() { return 0; };
43+
virtual double getIntervalDurationInSeconds() { return 0; };
4444

4545
virtual void timerCallback() = 0;
4646

@@ -74,7 +74,7 @@ class FullTimeline : public Timeline
7474

7575
int getStartInterval() { return intervalStartPosition; }
7676
int getIntervalWidth() { return intervalWidth; }
77-
int getIntervalDurationInSeconds();
77+
double getIntervalDurationInSeconds();
7878

7979
void setIntervalPosition (int pos);
8080

0 commit comments

Comments
 (0)