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_WEBRTC_LOCAL_AUDIO_TRACK_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_TRACK_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_TRACK_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_TRACK_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // Stops the local audio track. Called on the main render thread and | 63 // Stops the local audio track. Called on the main render thread and |
64 // should be called only once when audio track going away. | 64 // should be called only once when audio track going away. |
65 virtual void Stop() OVERRIDE; | 65 virtual void Stop() OVERRIDE; |
66 | 66 |
67 // Method called by the capturer to deliver the capture data. | 67 // Method called by the capturer to deliver the capture data. |
68 // Called on the capture audio thread. | 68 // Called on the capture audio thread. |
69 void Capture(const int16* audio_data, | 69 void Capture(const int16* audio_data, |
70 base::TimeDelta delay, | 70 base::TimeDelta delay, |
71 int volume, | 71 int volume, |
72 bool key_pressed, | 72 bool key_pressed, |
73 bool need_audio_processing); | 73 bool need_audio_processing, |
| 74 bool force_report_nonzero_energy); |
74 | 75 |
75 // Method called by the capturer to set the audio parameters used by source | 76 // Method called by the capturer to set the audio parameters used by source |
76 // of the capture data.. | 77 // of the capture data.. |
77 // Called on the capture audio thread. | 78 // Called on the capture audio thread. |
78 void OnSetFormat(const media::AudioParameters& params); | 79 void OnSetFormat(const media::AudioParameters& params); |
79 | 80 |
80 // Method called by the capturer to set the processor that applies signal | 81 // Method called by the capturer to set the processor that applies signal |
81 // processing on the data of the track. | 82 // processing on the data of the track. |
82 // Called on the capture audio thread. | 83 // Called on the capture audio thread. |
83 void SetAudioProcessor( | 84 void SetAudioProcessor( |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // Used to calculate the signal level that shows in the UI. | 119 // Used to calculate the signal level that shows in the UI. |
119 // Accessed on only the audio thread. | 120 // Accessed on only the audio thread. |
120 scoped_ptr<MediaStreamAudioLevelCalculator> level_calculator_; | 121 scoped_ptr<MediaStreamAudioLevelCalculator> level_calculator_; |
121 | 122 |
122 DISALLOW_COPY_AND_ASSIGN(WebRtcLocalAudioTrack); | 123 DISALLOW_COPY_AND_ASSIGN(WebRtcLocalAudioTrack); |
123 }; | 124 }; |
124 | 125 |
125 } // namespace content | 126 } // namespace content |
126 | 127 |
127 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_TRACK_H_ | 128 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_TRACK_H_ |
OLD | NEW |