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 // Low-latency audio capturing class utilizing audio input stream provided | 5 // Low-latency audio capturing class utilizing audio input stream provided |
6 // by a server (browser) process by use of an IPC interface. | 6 // by a server (browser) process by use of an IPC interface. |
7 // | 7 // |
8 // Relationship of classes: | 8 // Relationship of classes: |
9 // | 9 // |
10 // AudioInputController AudioInputDevice | 10 // AudioInputController AudioInputDevice |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 #define MEDIA_AUDIO_AUDIO_INPUT_DEVICE_H_ | 54 #define MEDIA_AUDIO_AUDIO_INPUT_DEVICE_H_ |
55 | 55 |
56 #include <string> | 56 #include <string> |
57 | 57 |
58 #include "base/compiler_specific.h" | 58 #include "base/compiler_specific.h" |
59 #include "base/macros.h" | 59 #include "base/macros.h" |
60 #include "base/memory/scoped_ptr.h" | 60 #include "base/memory/scoped_ptr.h" |
61 #include "base/memory/shared_memory.h" | 61 #include "base/memory/shared_memory.h" |
62 #include "media/audio/audio_device_thread.h" | 62 #include "media/audio/audio_device_thread.h" |
63 #include "media/audio/audio_input_ipc.h" | 63 #include "media/audio/audio_input_ipc.h" |
64 #include "media/audio/audio_parameters.h" | |
65 #include "media/audio/scoped_task_runner_observer.h" | 64 #include "media/audio/scoped_task_runner_observer.h" |
66 #include "media/base/audio_capturer_source.h" | 65 #include "media/base/audio_capturer_source.h" |
| 66 #include "media/base/audio_parameters.h" |
67 #include "media/base/media_export.h" | 67 #include "media/base/media_export.h" |
68 | 68 |
69 namespace media { | 69 namespace media { |
70 | 70 |
71 // TODO(henrika): This class is based on the AudioOutputDevice class and it has | 71 // TODO(henrika): This class is based on the AudioOutputDevice class and it has |
72 // many components in common. Investigate potential for re-factoring. | 72 // many components in common. Investigate potential for re-factoring. |
73 // See http://crbug.com/179597. | 73 // See http://crbug.com/179597. |
74 // TODO(henrika): Add support for event handling (e.g. OnStateChanged, | 74 // TODO(henrika): Add support for event handling (e.g. OnStateChanged, |
75 // OnCaptureStopped etc.) and ensure that we can deliver these notifications | 75 // OnCaptureStopped etc.) and ensure that we can deliver these notifications |
76 // to any clients using this class. | 76 // to any clients using this class. |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 // TODO(miu): Replace this by changing AudioCapturerSource to accept the | 166 // TODO(miu): Replace this by changing AudioCapturerSource to accept the |
167 // callback via Start(). See http://crbug.com/151051 for details. | 167 // callback via Start(). See http://crbug.com/151051 for details. |
168 bool stopping_hack_; | 168 bool stopping_hack_; |
169 | 169 |
170 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioInputDevice); | 170 DISALLOW_IMPLICIT_CONSTRUCTORS(AudioInputDevice); |
171 }; | 171 }; |
172 | 172 |
173 } // namespace media | 173 } // namespace media |
174 | 174 |
175 #endif // MEDIA_AUDIO_AUDIO_INPUT_DEVICE_H_ | 175 #endif // MEDIA_AUDIO_AUDIO_INPUT_DEVICE_H_ |
OLD | NEW |