| Package | Description |
|---|---|
| com.peterphi.std.types |
| Modifier and Type | Method and Description |
|---|---|
Timecode |
Timecode.addPrecise(SampleCount samples)
Add some samples to this timecode, throwing an exception if precision would be lost
|
SampleCount |
SampleCount.addPrecise(SampleCount that) |
SampleCount |
Timecode.getSampleCountPrecise(Timecode from)
Returns a sample count as an offset from the provided timecode
The resulting timecode will be expressed in the same timebase as this object |
long |
SampleCount.getSamplesPrecise(Timebase newRate)
Returns the number of samples represented by this SampleCount, converted to
newRate. |
long |
Timebase.resample(long samples,
Timebase oldRate,
boolean failOnPrecisionLoss)
Convert a sample count from one timebase to another
Note that this may result in data loss due to rounding. |
long |
Timebase.resamplePrecise(long samples,
Timebase oldRate)
Convert a sample count from one timebase to another, throwing an exception if precision is lost
|
Timecode |
Timecode.resamplePrecise(Timebase toRate)
Resamples
|
SampleCount |
SampleCount.subtractPrecise(SampleCount that) |
Copyright © 2016. All rights reserved.