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

Side by Side Diff: media/base/audio_renderer_mixer_unittest.cc

Issue 10803003: Add SSE optimizations to SincResampler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error. Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | media/base/sinc_resampler.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | media/base/sinc_resampler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698