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

Side by Side Diff: content/renderer/media/media_stream_audio_processor.cc

Issue 1907973003: media: Move audio_parameters and audio_point to media/base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/renderer/media/media_stream_audio_processor.h" 5 #include "content/renderer/media/media_stream_audio_processor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/metrics/field_trial.h" 12 #include "base/metrics/field_trial.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "base/strings/string_number_conversions.h" 14 #include "base/strings/string_number_conversions.h"
15 #include "base/trace_event/trace_event.h" 15 #include "base/trace_event/trace_event.h"
16 #include "build/build_config.h" 16 #include "build/build_config.h"
17 #include "content/public/common/content_switches.h" 17 #include "content/public/common/content_switches.h"
18 #include "content/renderer/media/media_stream_audio_processor_options.h" 18 #include "content/renderer/media/media_stream_audio_processor_options.h"
19 #include "content/renderer/media/webrtc_audio_device_impl.h" 19 #include "content/renderer/media/webrtc_audio_device_impl.h"
20 #include "media/audio/audio_parameters.h"
21 #include "media/base/audio_converter.h" 20 #include "media/base/audio_converter.h"
22 #include "media/base/audio_fifo.h" 21 #include "media/base/audio_fifo.h"
22 #include "media/base/audio_parameters.h"
23 #include "media/base/channel_layout.h" 23 #include "media/base/channel_layout.h"
24 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" 24 #include "third_party/WebKit/public/platform/WebMediaConstraints.h"
25 #include "third_party/webrtc/api/mediaconstraintsinterface.h" 25 #include "third_party/webrtc/api/mediaconstraintsinterface.h"
26 #include "third_party/webrtc/modules/audio_processing/typing_detection.h" 26 #include "third_party/webrtc/modules/audio_processing/typing_detection.h"
27 27
28 namespace content { 28 namespace content {
29 29
30 namespace { 30 namespace {
31 31
32 using webrtc::AudioProcessing; 32 using webrtc::AudioProcessing;
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 if (echo_information_) { 739 if (echo_information_) {
740 echo_information_.get()->UpdateAecDelayStats(ap->echo_cancellation()); 740 echo_information_.get()->UpdateAecDelayStats(ap->echo_cancellation());
741 } 741 }
742 742
743 // Return 0 if the volume hasn't been changed, and otherwise the new volume. 743 // Return 0 if the volume hasn't been changed, and otherwise the new volume.
744 return (agc->stream_analog_level() == volume) ? 744 return (agc->stream_analog_level() == volume) ?
745 0 : agc->stream_analog_level(); 745 0 : agc->stream_analog_level();
746 } 746 }
747 747
748 } // namespace content 748 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/media_recorder_handler.cc ('k') | content/renderer/media/media_stream_audio_processor_options.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698