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 #ifndef MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ | 5 #ifndef MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ |
6 #define MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ | 6 #define MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/files/file.h" | 14 #include "base/files/file.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "base/single_thread_task_runner.h" |
16 #include "media/audio/audio_debug_file_writer.h" | 17 #include "media/audio/audio_debug_file_writer.h" |
17 #include "media/audio/audio_io.h" | 18 #include "media/audio/audio_io.h" |
18 #include "media/audio/audio_manager_base.h" | 19 #include "media/audio/audio_manager_base.h" |
19 #include "media/base/audio_bus.h" | 20 #include "media/base/audio_bus.h" |
20 #include "media/base/audio_parameters.h" | 21 #include "media/base/audio_parameters.h" |
21 #include "media/base/media_switches.h" | 22 #include "media/base/media_switches.h" |
22 | 23 |
23 // An AudioInputController controls an AudioInputStream and records data | 24 // An AudioInputController controls an AudioInputStream and records data |
24 // from this input stream. The two main methods are Record() and Close() and | 25 // from this input stream. The two main methods are Record() and Close() and |
25 // they are both executed on the audio thread which is injected by the two | 26 // they are both executed on the audio thread which is injected by the two |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 // The weak_ptr_factory_ and all outstanding weak pointers, are invalidated | 399 // The weak_ptr_factory_ and all outstanding weak pointers, are invalidated |
399 // at the end of DoClose. | 400 // at the end of DoClose. |
400 base::WeakPtrFactory<AudioInputController> weak_ptr_factory_; | 401 base::WeakPtrFactory<AudioInputController> weak_ptr_factory_; |
401 | 402 |
402 DISALLOW_COPY_AND_ASSIGN(AudioInputController); | 403 DISALLOW_COPY_AND_ASSIGN(AudioInputController); |
403 }; | 404 }; |
404 | 405 |
405 } // namespace media | 406 } // namespace media |
406 | 407 |
407 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ | 408 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ |
OLD | NEW |