code: public double resample(final double samples, final Timebase oldRate)
  	{
  		if (samples == 0)
  		{
  			return 0;
  		}
  		else if (!this.equals(oldRate))
  		{
  			final double resampled = resample(samples, oldRate, this);
  
  			return resampled;
  		}
  		else
  		{
  			return samples;
  		}
  	}
docs: Convert a sample count from one timebase to another
  
  @param samples
  @param oldRate
  
  @return