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 |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 #endif | 319 #endif |
320 | 320 |
321 // Enable and disable debug recording of audio input. Called on the audio | 321 // Enable and disable debug recording of audio input. Called on the audio |
322 // thread. | 322 // thread. |
323 void DoEnableDebugRecording(AudioInputWriter* input_writer); | 323 void DoEnableDebugRecording(AudioInputWriter* input_writer); |
324 void DoDisableDebugRecording(); | 324 void DoDisableDebugRecording(); |
325 | 325 |
326 // Called on the audio thread. | 326 // Called on the audio thread. |
327 void WriteInputDataForDebugging(std::unique_ptr<AudioBus> data); | 327 void WriteInputDataForDebugging(std::unique_ptr<AudioBus> data); |
328 | 328 |
| 329 // Called by the stream with log messages. |
| 330 void LogMessage(const std::string& message); |
| 331 |
329 // Gives access to the task runner of the creating thread. | 332 // Gives access to the task runner of the creating thread. |
330 scoped_refptr<base::SingleThreadTaskRunner> creator_task_runner_; | 333 scoped_refptr<base::SingleThreadTaskRunner> creator_task_runner_; |
331 | 334 |
332 // The task runner of audio-manager thread that this object runs on. | 335 // The task runner of audio-manager thread that this object runs on. |
333 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 336 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
334 | 337 |
335 // Contains the AudioInputController::EventHandler which receives state | 338 // Contains the AudioInputController::EventHandler which receives state |
336 // notifications from this class. | 339 // notifications from this class. |
337 EventHandler* handler_; | 340 EventHandler* handler_; |
338 | 341 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 | 394 |
392 // Used for audio debug recordings. Accessed on audio thread. | 395 // Used for audio debug recordings. Accessed on audio thread. |
393 AudioInputWriter* input_writer_; | 396 AudioInputWriter* input_writer_; |
394 | 397 |
395 DISALLOW_COPY_AND_ASSIGN(AudioInputController); | 398 DISALLOW_COPY_AND_ASSIGN(AudioInputController); |
396 }; | 399 }; |
397 | 400 |
398 } // namespace media | 401 } // namespace media |
399 | 402 |
400 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ | 403 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ |
OLD | NEW |