mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
fix timecode initialization
This commit is contained in:
parent
89e63b4bce
commit
9fb98b83bf
1 changed files with 2 additions and 0 deletions
|
|
@ -19,6 +19,7 @@
|
||||||
#ifndef __timecode_time_h__
|
#ifndef __timecode_time_h__
|
||||||
#define __timecode_time_h__
|
#define __timecode_time_h__
|
||||||
|
|
||||||
|
#include <cmath>
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
|
|
@ -68,6 +69,7 @@ struct LIBTIMECODE_API Time {
|
||||||
frames = 0;
|
frames = 0;
|
||||||
subframes = 0;
|
subframes = 0;
|
||||||
rate = a_rate;
|
rate = a_rate;
|
||||||
|
drop = (rintf(100.f * a_rate) == 2997);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator== (const Time& other) const {
|
bool operator== (const Time& other) const {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue