code: public SampleCount resample(Timebase newRate)
  	{
  		if (!this.rate.equals(newRate))
  		{
  			final long newSamples = getSamples(newRate);
  
  			return new SampleCount(newSamples, newRate);
  		}
  		else
  		{
  			// Same rate, no need to resample
  			return this;
  		}
  	}
docs: Resample this sample count to another rate
  
  @param newRate
  
  @return