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 #include "content/renderer/media/webrtc/processed_local_audio_source.h" | 5 #include "content/renderer/media/webrtc/processed_local_audio_source.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "content/renderer/media/audio_device_factory.h" | 10 #include "content/renderer/media/audio_device_factory.h" |
11 #include "content/renderer/media/media_stream_audio_processor_options.h" | 11 #include "content/renderer/media/media_stream_audio_processor_options.h" |
12 #include "content/renderer/media/media_stream_constraints_util.h" | 12 #include "content/renderer/media/media_stream_constraints_util.h" |
13 #include "content/renderer/media/webrtc/peer_connection_dependency_factory.h" | 13 #include "content/renderer/media/webrtc/peer_connection_dependency_factory.h" |
14 #include "content/renderer/media/webrtc_audio_device_impl.h" | 14 #include "content/renderer/media/webrtc_audio_device_impl.h" |
15 #include "content/renderer/media/webrtc_logging.h" | 15 #include "content/renderer/media/webrtc_logging.h" |
16 #include "content/renderer/render_frame_impl.h" | 16 #include "content/renderer/render_frame_impl.h" |
17 #include "media/audio/sample_rates.h" | 17 #include "media/audio/sample_rates.h" |
18 #include "media/base/channel_layout.h" | 18 #include "media/base/channel_layout.h" |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 | 366 |
367 // If the buffer size is missing from the StreamDeviceInfo, provide 10ms as a | 367 // If the buffer size is missing from the StreamDeviceInfo, provide 10ms as a |
368 // fall-back. | 368 // fall-back. |
369 // | 369 // |
370 // TODO(miu): Identify where/why the buffer size might be missing, fix the | 370 // TODO(miu): Identify where/why the buffer size might be missing, fix the |
371 // code, and then require it here. http://crbug.com/638081 | 371 // code, and then require it here. http://crbug.com/638081 |
372 return (sample_rate / 100); | 372 return (sample_rate / 100); |
373 } | 373 } |
374 | 374 |
375 } // namespace content | 375 } // namespace content |
OLD | NEW |