Uses of Class
com.peterphi.std.types.ResamplingException
Packages that use ResamplingException
-
Uses of ResamplingException in com.peterphi.std.types
Methods in com.peterphi.std.types that throw ResamplingExceptionModifier and TypeMethodDescriptionSampleCount.addPrecise(SampleCount that) Timecode.addPrecise(SampleCount samples) Add some samples to this timecode, throwing an exception if precision would be lostTimecode.getSampleCountPrecise(Timecode from) Returns a sample count as an offset from the provided timecode
The resulting timecode will be expressed in the same timebase asthisobjectlongSampleCount.getSamplesPrecise(Timebase newRate) Returns the number of samples represented by this SampleCount, converted tonewRate.longConvert a sample count from one timebase to another
Note that this may result in data loss due to rounding.longTimebase.resamplePrecise(long samples, Timebase oldRate) Convert a sample count from one timebase to another, throwing an exception if precision is lostTimecode.resamplePrecise(Timebase toRate) ResamplesSampleCount.subtractPrecise(SampleCount that)