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 <string> | 8 #include <string> |
9 #include "base/atomicops.h" | 9 #include "base/atomicops.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 SILENCE_STATE_ONLY_SILENCE = 2, | 259 SILENCE_STATE_ONLY_SILENCE = 2, |
260 SILENCE_STATE_AUDIO_AND_SILENCE = 3, | 260 SILENCE_STATE_AUDIO_AND_SILENCE = 3, |
261 SILENCE_STATE_MAX = SILENCE_STATE_AUDIO_AND_SILENCE | 261 SILENCE_STATE_MAX = SILENCE_STATE_AUDIO_AND_SILENCE |
262 }; | 262 }; |
263 #endif | 263 #endif |
264 | 264 |
265 AudioInputController(EventHandler* handler, | 265 AudioInputController(EventHandler* handler, |
266 SyncWriter* sync_writer, | 266 SyncWriter* sync_writer, |
267 UserInputMonitor* user_input_monitor, | 267 UserInputMonitor* user_input_monitor, |
268 const bool agc_is_enabled); | 268 const bool agc_is_enabled); |
269 virtual ~AudioInputController(); | 269 ~AudioInputController() override; |
270 | 270 |
271 // Methods called on the audio thread (owned by the AudioManager). | 271 // Methods called on the audio thread (owned by the AudioManager). |
272 void DoCreate(AudioManager* audio_manager, | 272 void DoCreate(AudioManager* audio_manager, |
273 const AudioParameters& params, | 273 const AudioParameters& params, |
274 const std::string& device_id); | 274 const std::string& device_id); |
275 void DoCreateForLowLatency(AudioManager* audio_manager, | 275 void DoCreateForLowLatency(AudioManager* audio_manager, |
276 const AudioParameters& params, | 276 const AudioParameters& params, |
277 const std::string& device_id); | 277 const std::string& device_id); |
278 void DoCreateForStream(AudioInputStream* stream_to_control); | 278 void DoCreateForStream(AudioInputStream* stream_to_control); |
279 void DoRecord(); | 279 void DoRecord(); |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 | 368 |
369 // Time when a low-latency stream is created. | 369 // Time when a low-latency stream is created. |
370 base::TimeTicks low_latency_create_time_; | 370 base::TimeTicks low_latency_create_time_; |
371 | 371 |
372 DISALLOW_COPY_AND_ASSIGN(AudioInputController); | 372 DISALLOW_COPY_AND_ASSIGN(AudioInputController); |
373 }; | 373 }; |
374 | 374 |
375 } // namespace media | 375 } // namespace media |
376 | 376 |
377 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ | 377 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ |
OLD | NEW |