code: public long resample(final long samples, final Timebase oldRate)
  	{
  		try
  		{
  			return resample(samples, oldRate, false);
  		}
  		catch (ResamplingException e)
  		{
  			// should never happen
  			throw new RuntimeException(e);
  		}
  	}
docs: Convert a sample count from one timebase to another<br />
  Note that this may result in data loss due to rounding.
  
  @param samples
  @param oldRate
  
  @return