Index: chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc |
diff --git a/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc b/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc |
index b8c535660179b9d88270165515a27e895f235d11..54d25961011a56f05870ed40b4e99f85cf4100f3 100644 |
--- a/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc |
+++ b/chrome/browser/extensions/api/cast_streaming/cast_streaming_apitest.cc |
@@ -176,7 +176,7 @@ class TestPatternReceiver : public media::cast::InProcessReceiver { |
} |
crossings /= audio_frame->channels(); // Take the average. |
const float seconds_per_frame = |
- audio_frame->frames() / static_cast<float>(audio_config().frequency); |
+ audio_frame->frames() / static_cast<float>(audio_config().rtp_timebase); |
const float frequency = crossings / seconds_per_frame / 2.0f; |
VLOG(1) << "Current audio tone frequency: " << frequency; |