Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Unified Diff: media/filters/audio_renderer_algorithm_unittest.cc

Issue 1094783002: Switch to double for time calculations using playback rate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Making changes at chromecast side to fix trybots Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/filters/audio_renderer_algorithm.cc ('k') | media/mojo/interfaces/media_renderer.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_algorithm_unittest.cc
diff --git a/media/filters/audio_renderer_algorithm_unittest.cc b/media/filters/audio_renderer_algorithm_unittest.cc
index 47ce30e84a66c8703df63cb2138f5b98bb4a3dfc..003cd512da4bda2a6d47555744fbc08023403d12 100644
--- a/media/filters/audio_renderer_algorithm_unittest.cc
+++ b/media/filters/audio_renderer_algorithm_unittest.cc
@@ -239,7 +239,7 @@ class AudioRendererAlgorithmTest : public testing::Test {
EXPECT_NEAR(playback_rate, actual_playback_rate, playback_rate / 100.0);
}
- void WsolaTest(float playback_rate) {
+ void WsolaTest(double playback_rate) {
const int kSampleRateHz = 48000;
const ChannelLayout kChannelLayout = CHANNEL_LAYOUT_STEREO;
const int kBytesPerSample = 2;
@@ -640,11 +640,11 @@ TEST_F(AudioRendererAlgorithmTest, QuadraticInterpolation_Colinear) {
}
TEST_F(AudioRendererAlgorithmTest, WsolaSlowdown) {
- WsolaTest(0.6f);
+ WsolaTest(0.6);
}
TEST_F(AudioRendererAlgorithmTest, WsolaSpeedup) {
- WsolaTest(1.6f);
+ WsolaTest(1.6);
}
TEST_F(AudioRendererAlgorithmTest, FillBufferOffset) {
« no previous file with comments | « media/filters/audio_renderer_algorithm.cc ('k') | media/mojo/interfaces/media_renderer.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698