OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // MSVC++ requires this to be set before any other includes to get M_PI. | 5 // MSVC++ requires this to be set before any other includes to get M_PI. |
6 #define _USE_MATH_DEFINES | 6 #define _USE_MATH_DEFINES |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 } | 403 } |
404 | 404 |
405 mixer_callback_->OnRenderError(); | 405 mixer_callback_->OnRenderError(); |
406 for (size_t i = 0; i < mixer_inputs_.size(); ++i) | 406 for (size_t i = 0; i < mixer_inputs_.size(); ++i) |
407 mixer_inputs_[i]->Stop(); | 407 mixer_inputs_[i]->Stop(); |
408 } | 408 } |
409 | 409 |
410 INSTANTIATE_TEST_CASE_P( | 410 INSTANTIATE_TEST_CASE_P( |
411 AudioRendererMixerTest, AudioRendererMixerTest, testing::Values( | 411 AudioRendererMixerTest, AudioRendererMixerTest, testing::Values( |
412 // No resampling. | 412 // No resampling. |
413 std::tr1::make_tuple(44100, 44100, 0.000000477), | 413 std::tr1::make_tuple(44100, 44100, 0.00000048), |
414 | 414 |
415 // Upsampling. | 415 // Upsampling. |
416 std::tr1::make_tuple(44100, 48000, 0.0329405), | 416 std::tr1::make_tuple(44100, 48000, 0.033), |
417 | 417 |
418 // Downsampling. | 418 // Downsampling. |
419 std::tr1::make_tuple(48000, 41000, 0.0410239))); | 419 std::tr1::make_tuple(48000, 41000, 0.042))); |
420 | 420 |
421 } // namespace media | 421 } // namespace media |
OLD | NEW |