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_audio_renderer.h" | 5 #include "content/renderer/media/webrtc_audio_renderer.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
12 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
14 #include "content/renderer/media/audio_device_factory.h" | 14 #include "content/renderer/media/audio_device_factory.h" |
15 #include "content/renderer/media/media_stream_audio_track.h" | 15 #include "content/renderer/media/media_stream_audio_track.h" |
16 #include "content/renderer/media/media_stream_dispatcher.h" | 16 #include "content/renderer/media/media_stream_dispatcher.h" |
17 #include "content/renderer/media/media_stream_track.h" | 17 #include "content/renderer/media/media_stream_track.h" |
18 #include "content/renderer/media/webrtc_audio_device_impl.h" | 18 #include "content/renderer/media/webrtc_audio_device_impl.h" |
19 #include "content/renderer/media/webrtc_logging.h" | 19 #include "content/renderer/media/webrtc_logging.h" |
20 #include "content/renderer/render_frame_impl.h" | 20 #include "content/renderer/render_frame_impl.h" |
21 #include "media/audio/audio_output_device.h" | 21 #include "media/audio/audio_output_device.h" |
22 #include "media/audio/audio_parameters.h" | 22 #include "media/audio/audio_parameters.h" |
23 #include "media/audio/sample_rates.h" | 23 #include "media/audio/sample_rates.h" |
24 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 24 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
25 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" | 25 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" |
26 #include "third_party/libjingle/source/talk/media/base/audiorenderer.h" | 26 #include "third_party/webrtc/media/base/audiorenderer.h" |
27 | 27 |
28 #if defined(OS_WIN) | 28 #if defined(OS_WIN) |
29 #include "base/win/windows_version.h" | 29 #include "base/win/windows_version.h" |
30 #include "media/audio/win/core_audio_util_win.h" | 30 #include "media/audio/win/core_audio_util_win.h" |
31 #endif | 31 #endif |
32 | 32 |
33 namespace content { | 33 namespace content { |
34 | 34 |
35 namespace { | 35 namespace { |
36 | 36 |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 base::Bind(&WebRtcAudioRenderer::SourceCallback, | 663 base::Bind(&WebRtcAudioRenderer::SourceCallback, |
664 base::Unretained(this)))); | 664 base::Unretained(this)))); |
665 } | 665 } |
666 sink_params_ = new_sink_params; | 666 sink_params_ = new_sink_params; |
667 } | 667 } |
668 | 668 |
669 sink_->Initialize(new_sink_params, this); | 669 sink_->Initialize(new_sink_params, this); |
670 } | 670 } |
671 | 671 |
672 } // namespace content | 672 } // namespace content |
OLD | NEW |