OLD | NEW |
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 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "base/threading/thread_checker.h" | 16 #include "base/threading/thread_checker.h" |
17 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
18 #include "content/renderer/media/webrtc_audio_capturer.h" | 18 #include "content/renderer/media/webrtc_audio_capturer.h" |
19 #include "content/renderer/media/webrtc_audio_device_not_impl.h" | 19 #include "content/renderer/media/webrtc_audio_device_not_impl.h" |
20 #include "content/renderer/media/webrtc_audio_renderer.h" | |
21 #include "ipc/ipc_platform_file.h" | 20 #include "ipc/ipc_platform_file.h" |
22 #include "media/base/audio_capturer_source.h" | 21 #include "media/base/audio_capturer_source.h" |
23 #include "media/base/audio_renderer_sink.h" | 22 #include "media/base/audio_renderer_sink.h" |
24 | 23 |
25 // A WebRtcAudioDeviceImpl instance implements the abstract interface | 24 // A WebRtcAudioDeviceImpl instance implements the abstract interface |
26 // webrtc::AudioDeviceModule which makes it possible for a user (e.g. webrtc:: | 25 // webrtc::AudioDeviceModule which makes it possible for a user (e.g. webrtc:: |
27 // VoiceEngine) to register this class as an external AudioDeviceModule (ADM). | 26 // VoiceEngine) to register this class as an external AudioDeviceModule (ADM). |
28 // Then WebRtcAudioDeviceImpl::SetSessionId() needs to be called to set the | 27 // Then WebRtcAudioDeviceImpl::SetSessionId() needs to be called to set the |
29 // session id that tells which device to use. The user can then call | 28 // session id that tells which device to use. The user can then call |
30 // WebRtcAudioDeviceImpl::StartPlayout() and | 29 // WebRtcAudioDeviceImpl::StartPlayout() and |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 | 451 |
453 // Used for start the Aec dump on the default capturer. | 452 // Used for start the Aec dump on the default capturer. |
454 base::PlatformFile aec_dump_file_; | 453 base::PlatformFile aec_dump_file_; |
455 | 454 |
456 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl); | 455 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl); |
457 }; | 456 }; |
458 | 457 |
459 } // namespace content | 458 } // namespace content |
460 | 459 |
461 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ | 460 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ |
OLD | NEW |