| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 SILENCE_STATE_MAX = SILENCE_STATE_AUDIO_AND_SILENCE | 265 SILENCE_STATE_MAX = SILENCE_STATE_AUDIO_AND_SILENCE |
| 266 }; | 266 }; |
| 267 #endif | 267 #endif |
| 268 | 268 |
| 269 AudioInputController(EventHandler* handler, | 269 AudioInputController(EventHandler* handler, |
| 270 SyncWriter* sync_writer, | 270 SyncWriter* sync_writer, |
| 271 UserInputMonitor* user_input_monitor); | 271 UserInputMonitor* user_input_monitor); |
| 272 virtual ~AudioInputController(); | 272 virtual ~AudioInputController(); |
| 273 | 273 |
| 274 // Methods called on the audio thread (owned by the AudioManager). | 274 // Methods called on the audio thread (owned by the AudioManager). |
| 275 void DoCreate(AudioManager* audio_manager, const AudioParameters& params, | 275 void DoCreate(AudioManager* audio_manager, |
| 276 const AudioParameters& params, |
| 276 const std::string& device_id); | 277 const std::string& device_id); |
| 277 void DoCreateForLowLatency(AudioManager* audio_manager, | 278 void DoCreateForLowLatency(AudioManager* audio_manager, |
| 278 const AudioParameters& params, | 279 const AudioParameters& params, |
| 279 const std::string& device_id); | 280 const std::string& device_id); |
| 280 void DoCreateForStream(AudioInputStream* stream_to_control); | 281 void DoCreateForStream(AudioInputStream* stream_to_control); |
| 281 void DoRecord(); | 282 void DoRecord(); |
| 282 void DoClose(); | 283 void DoClose(); |
| 283 void DoReportError(); | 284 void DoReportError(); |
| 284 void DoSetVolume(double volume); | 285 void DoSetVolume(double volume); |
| 285 void DoSetAutomaticGainControl(bool enabled); | 286 void DoSetAutomaticGainControl(bool enabled); |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 #endif | 368 #endif |
| 368 | 369 |
| 369 size_t prev_key_down_count_; | 370 size_t prev_key_down_count_; |
| 370 | 371 |
| 371 DISALLOW_COPY_AND_ASSIGN(AudioInputController); | 372 DISALLOW_COPY_AND_ASSIGN(AudioInputController); |
| 372 }; | 373 }; |
| 373 | 374 |
| 374 } // namespace media | 375 } // namespace media |
| 375 | 376 |
| 376 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ | 377 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ |
| OLD | NEW |