| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ | 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ |
| 7 | 7 |
| 8 #include "base/atomicops.h" | 8 #include "base/atomicops.h" |
| 9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
| 10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // otherwise false. | 78 // otherwise false. |
| 79 // |capture_delay|, |volume| and |key_pressed| will be passed to | 79 // |capture_delay|, |volume| and |key_pressed| will be passed to |
| 80 // webrtc::AudioProcessing to help processing the data. | 80 // webrtc::AudioProcessing to help processing the data. |
| 81 // Called on the capture audio thread. | 81 // Called on the capture audio thread. |
| 82 bool ProcessAndConsumeData(base::TimeDelta capture_delay, | 82 bool ProcessAndConsumeData(base::TimeDelta capture_delay, |
| 83 int volume, | 83 int volume, |
| 84 bool key_pressed, | 84 bool key_pressed, |
| 85 int* new_volume, | 85 int* new_volume, |
| 86 int16** out); | 86 int16** out); |
| 87 | 87 |
| 88 bool IsAudioTrackProcessingEnabled() const; |
| 89 |
| 88 // The audio format of the input to the processor. | 90 // The audio format of the input to the processor. |
| 89 const media::AudioParameters& InputFormat() const; | 91 const media::AudioParameters& InputFormat() const; |
| 90 | 92 |
| 91 // The audio format of the output from the processor. | 93 // The audio format of the output from the processor. |
| 92 const media::AudioParameters& OutputFormat() const; | 94 const media::AudioParameters& OutputFormat() const; |
| 93 | 95 |
| 94 // Accessor to check if the audio processing is enabled or not. | 96 // Accessor to check if the audio processing is enabled or not. |
| 95 bool has_audio_processing() const { return audio_processing_ != NULL; } | 97 bool has_audio_processing() const { return audio_processing_ != NULL; } |
| 96 | 98 |
| 97 // Starts/Stops the Aec dump on the |audio_processing_|. | 99 // Starts/Stops the Aec dump on the |audio_processing_|. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 190 |
| 189 // This flag is used to show the result of typing detection. | 191 // This flag is used to show the result of typing detection. |
| 190 // It can be accessed by the capture audio thread and by the libjingle thread | 192 // It can be accessed by the capture audio thread and by the libjingle thread |
| 191 // which calls GetStats(). | 193 // which calls GetStats(). |
| 192 base::subtle::Atomic32 typing_detected_; | 194 base::subtle::Atomic32 typing_detected_; |
| 193 }; | 195 }; |
| 194 | 196 |
| 195 } // namespace content | 197 } // namespace content |
| 196 | 198 |
| 197 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ | 199 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_H_ |
| OLD | NEW |