Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / webrtc / common_audio / resampler / push_sinc_resampler.h
index fa1bb3e..7c804fe 100644 (file)
@@ -44,6 +44,9 @@ class PushSincResampler : public SincResamplerCallback {
   virtual void Run(int frames, float* destination) OVERRIDE;
 
   SincResampler* get_resampler_for_testing() { return resampler_.get(); }
+  static float AlgorithmicDelaySeconds(int source_rate_hz) {
+    return 1.f / source_rate_hz * SincResampler::kKernelSize / 2;
+  }
 
  private:
   scoped_ptr<SincResampler> resampler_;