Methods Summary |
---|
public float | getCurrentRate()Get the current rate.
return current;
|
public float | getMaximumRate()Get the maximum rate supported by this range.
return maximum;
|
public float | getMinimumRate()Get the minimum rate supported by this range.
return minimum;
|
public boolean | inRange(float rate)Determine whether or not a particular value is within the range of
supported rates.
return (minimum < rate) && (rate < maximum);
|
public boolean | isExact()Determine whether or not the source will maintain a constant
speed when using this rate. If the
rate varies, synchronization is usually impractical.
return exact;
|
public float | setCurrentRate(float rate)Set the current rate. Returns the rate that was actually set.
This implementation just returns the specified rate,
subclasses should return the rate that was actually
set.
current = rate;
return current;
|