Package com.banuba.sdk.internal.utils
Class TimeUtils
java.lang.Object
com.banuba.sdk.internal.utils.TimeUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
audioBufferPosition2TimeNanoSec
(int posBytes) static int
audioTimeSec2BufferPosition
(double timeSec) static int
audioTimeSec2BufferPositionBlocked
(double timeSec, int blockSize) static long
getCorrectedTime
(long time, float speedValue) static int
micro2milli
(long micro) static long
micro2nano
(long micro) static double
micro2sec
(long micro) static double
micro2second
(long micro) static long
milli2nano
(long milli) static long
milli2nanoWithSpeed
(int milli, float speedValue) static double
milli2sec
(int milli) static double
milli2sec
(long milli) static int
nano2milli
(long nano) static double
nano2sec
(long nano)
-
Constructor Details
-
TimeUtils
public TimeUtils()
-
-
Method Details
-
micro2second
public static double micro2second(long micro) -
micro2nano
public static long micro2nano(long micro) -
micro2milli
public static int micro2milli(long micro) -
nano2milli
public static int nano2milli(long nano) -
milli2nano
public static long milli2nano(long milli) -
nano2sec
public static double nano2sec(long nano) -
micro2sec
public static double micro2sec(long micro) -
milli2sec
public static double milli2sec(int milli) -
milli2sec
public static double milli2sec(long milli) -
audioTimeSec2BufferPosition
public static int audioTimeSec2BufferPosition(double timeSec) -
audioTimeSec2BufferPositionBlocked
public static int audioTimeSec2BufferPositionBlocked(double timeSec, int blockSize) -
audioBufferPosition2TimeNanoSec
public static long audioBufferPosition2TimeNanoSec(int posBytes) -
milli2nanoWithSpeed
public static long milli2nanoWithSpeed(int milli, float speedValue) -
getCorrectedTime
public static long getCorrectedTime(long time, float speedValue)
-