| 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 <stdint.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/basictypes.h" | |
| 12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 13 #include "base/files/file.h" | 14 #include "base/files/file.h" |
| 14 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/macros.h" |
| 15 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
| 16 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/threading/thread_checker.h" | 19 #include "base/threading/thread_checker.h" |
| 18 #include "content/common/content_export.h" | 20 #include "content/common/content_export.h" |
| 19 #include "content/renderer/media/webrtc_audio_capturer.h" | 21 #include "content/renderer/media/webrtc_audio_capturer.h" |
| 20 #include "content/renderer/media/webrtc_audio_device_not_impl.h" | 22 #include "content/renderer/media/webrtc_audio_device_not_impl.h" |
| 21 #include "ipc/ipc_platform_file.h" | 23 #include "ipc/ipc_platform_file.h" |
| 22 #include "media/base/audio_capturer_source.h" | 24 #include "media/base/audio_capturer_source.h" |
| 23 #include "media/base/audio_renderer_sink.h" | 25 #include "media/base/audio_renderer_sink.h" |
| 24 | 26 |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 bool initialized_; | 397 bool initialized_; |
| 396 bool playing_; | 398 bool playing_; |
| 397 bool recording_; | 399 bool recording_; |
| 398 | 400 |
| 399 // Stores latest microphone volume received in a CaptureData() callback. | 401 // Stores latest microphone volume received in a CaptureData() callback. |
| 400 // Range is [0, 255]. | 402 // Range is [0, 255]. |
| 401 uint32_t microphone_volume_; | 403 uint32_t microphone_volume_; |
| 402 | 404 |
| 403 // Buffer used for temporary storage during render callback. | 405 // Buffer used for temporary storage during render callback. |
| 404 // It is only accessed by the audio render thread. | 406 // It is only accessed by the audio render thread. |
| 405 std::vector<int16> render_buffer_; | 407 std::vector<int16_t> render_buffer_; |
| 406 | 408 |
| 407 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl); | 409 DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl); |
| 408 }; | 410 }; |
| 409 | 411 |
| 410 } // namespace content | 412 } // namespace content |
| 411 | 413 |
| 412 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ | 414 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ |
| OLD | NEW |