Package org.vamp_plugins
Class RealTime
- java.lang.Object
-
- org.vamp_plugins.RealTime
-
public class RealTime extends java.lang.Object
RealTime class, corresponding to the C++ Vamp::RealTime. Although the implementation is in native code, this class does not store a native object handle and has no dispose() method -- it can be garbage collected without prior disposal like any plain Java object.
-
-
Constructor Summary
Constructors Constructor and Description RealTime(int s, int n)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static RealTime
frame2RealTime(long frame, int sampleRate)
static RealTime
fromMilliseconds(int msec)
static RealTime
fromSeconds(double sec)
int
msec()
int
nsec()
static long
realTime2Frame(RealTime r, int sampleRate)
int
sec()
java.lang.String
toString()
java.lang.String
toText()
int
usec()
-
-
-
Method Detail
-
sec
public int sec()
-
nsec
public int nsec()
-
usec
public int usec()
-
msec
public int msec()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toText
public java.lang.String toText()
-
fromSeconds
public static RealTime fromSeconds(double sec)
-
fromMilliseconds
public static RealTime fromMilliseconds(int msec)
-
frame2RealTime
public static RealTime frame2RealTime(long frame, int sampleRate)
-
realTime2Frame
public static long realTime2Frame(RealTime r, int sampleRate)
-
-