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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 }; | 247 }; |
248 | 248 |
249 AudioInputController(EventHandler* handler, | 249 AudioInputController(EventHandler* handler, |
250 SyncWriter* sync_writer, | 250 SyncWriter* sync_writer, |
251 UserInputMonitor* user_input_monitor); | 251 UserInputMonitor* user_input_monitor); |
252 virtual ~AudioInputController(); | 252 virtual ~AudioInputController(); |
253 | 253 |
254 // Methods called on the audio thread (owned by the AudioManager). | 254 // Methods called on the audio thread (owned by the AudioManager). |
255 void DoCreate(AudioManager* audio_manager, const AudioParameters& params, | 255 void DoCreate(AudioManager* audio_manager, const AudioParameters& params, |
256 const std::string& device_id); | 256 const std::string& device_id); |
257 void DoCreateForStream(AudioInputStream* stream_to_control, | 257 void DoCreateForStream(AudioInputStream* stream_to_control); |
258 bool enable_nodata_timer); | |
259 void DoRecord(); | 258 void DoRecord(); |
260 void DoClose(); | 259 void DoClose(); |
261 void DoReportError(); | 260 void DoReportError(); |
262 void DoSetVolume(double volume); | 261 void DoSetVolume(double volume); |
263 void DoSetAutomaticGainControl(bool enabled); | 262 void DoSetAutomaticGainControl(bool enabled); |
264 void DoOnData(scoped_ptr<AudioBus> data); | 263 void DoOnData(scoped_ptr<AudioBus> data); |
265 void DoLogAudioLevel(float level_dbfs); | 264 void DoLogAudioLevel(float level_dbfs); |
266 | 265 |
267 // Method to check if we get recorded data after a stream was started, | 266 // Method to check if we get recorded data after a stream was started, |
268 // and log the result to UMA. | 267 // and log the result to UMA. |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 #endif | 329 #endif |
331 | 330 |
332 size_t prev_key_down_count_; | 331 size_t prev_key_down_count_; |
333 | 332 |
334 DISALLOW_COPY_AND_ASSIGN(AudioInputController); | 333 DISALLOW_COPY_AND_ASSIGN(AudioInputController); |
335 }; | 334 }; |
336 | 335 |
337 } // namespace media | 336 } // namespace media |
338 | 337 |
339 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ | 338 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ |
OLD | NEW |