| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // same sink interface as MediaStreamAudioSink. | 56 // same sink interface as MediaStreamAudioSink. |
| 57 void AddSink(PeerConnectionAudioSink* sink); | 57 void AddSink(PeerConnectionAudioSink* sink); |
| 58 void RemoveSink(PeerConnectionAudioSink* sink); | 58 void RemoveSink(PeerConnectionAudioSink* sink); |
| 59 | 59 |
| 60 // Starts the local audio track. Called on the main render thread and | 60 // Starts the local audio track. Called on the main render thread and |
| 61 // should be called only once when audio track is created. | 61 // should be called only once when audio track is created. |
| 62 void Start(); | 62 void Start(); |
| 63 | 63 |
| 64 // Stops the local audio track. Called on the main render thread and | 64 // Stops the local audio track. Called on the main render thread and |
| 65 // should be called only once when audio track going away. | 65 // should be called only once when audio track going away. |
| 66 void Stop(); | 66 virtual void StopTrack() OVERRIDE; |
| 67 | 67 |
| 68 // Method called by the capturer to deliver the capture data. | 68 // Method called by the capturer to deliver the capture data. |
| 69 // Called on the capture audio thread. | 69 // Called on the capture audio thread. |
| 70 void Capture(const int16* audio_data, | 70 void Capture(const int16* audio_data, |
| 71 base::TimeDelta delay, | 71 base::TimeDelta delay, |
| 72 int volume, | 72 int volume, |
| 73 bool key_pressed, | 73 bool key_pressed, |
| 74 bool need_audio_processing); | 74 bool need_audio_processing); |
| 75 | 75 |
| 76 // 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 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 // Used to calculate the signal level that shows in the UI. | 127 // Used to calculate the signal level that shows in the UI. |
| 128 // Accessed on only the audio thread. | 128 // Accessed on only the audio thread. |
| 129 scoped_ptr<MediaStreamAudioLevelCalculator> level_calculator_; | 129 scoped_ptr<MediaStreamAudioLevelCalculator> level_calculator_; |
| 130 | 130 |
| 131 DISALLOW_COPY_AND_ASSIGN(WebRtcLocalAudioTrack); | 131 DISALLOW_COPY_AND_ASSIGN(WebRtcLocalAudioTrack); |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 } // namespace content | 134 } // namespace content |
| 135 | 135 |
| 136 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_TRACK_H_ | 136 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_LOCAL_AUDIO_TRACK_H_ |
| OLD | NEW |