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 | |
332 // Gives access to the task runner of the creating thread. | 329 // Gives access to the task runner of the creating thread. |
333 scoped_refptr<base::SingleThreadTaskRunner> creator_task_runner_; | 330 scoped_refptr<base::SingleThreadTaskRunner> creator_task_runner_; |
334 | 331 |
335 // The task runner of audio-manager thread that this object runs on. | 332 // The task runner of audio-manager thread that this object runs on. |
336 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 333 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
337 | 334 |
338 // Contains the AudioInputController::EventHandler which receives state | 335 // Contains the AudioInputController::EventHandler which receives state |
339 // notifications from this class. | 336 // notifications from this class. |
340 EventHandler* handler_; | 337 EventHandler* handler_; |
341 | 338 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 | 391 |
395 // Used for audio debug recordings. Accessed on audio thread. | 392 // Used for audio debug recordings. Accessed on audio thread. |
396 AudioInputWriter* input_writer_; | 393 AudioInputWriter* input_writer_; |
397 | 394 |
398 DISALLOW_COPY_AND_ASSIGN(AudioInputController); | 395 DISALLOW_COPY_AND_ASSIGN(AudioInputController); |
399 }; | 396 }; |
400 | 397 |
401 } // namespace media | 398 } // namespace media |
402 | 399 |
403 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ | 400 #endif // MEDIA_AUDIO_AUDIO_INPUT_CONTROLLER_H_ |
OLD | NEW |