OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 VoEWrapper* voe() { return voe_wrapper_.get(); } | 102 VoEWrapper* voe() { return voe_wrapper_.get(); } |
103 int GetLastEngineError(); | 103 int GetLastEngineError(); |
104 | 104 |
105 // Set the external ADM. This can only be called before Init. | 105 // Set the external ADM. This can only be called before Init. |
106 bool SetAudioDeviceModule(webrtc::AudioDeviceModule* adm); | 106 bool SetAudioDeviceModule(webrtc::AudioDeviceModule* adm); |
107 | 107 |
108 // Starts AEC dump using existing file. | 108 // Starts AEC dump using existing file. |
109 bool StartAecDump(rtc::PlatformFile file); | 109 bool StartAecDump(rtc::PlatformFile file); |
110 | 110 |
| 111 // Stops AEC dump. |
| 112 void StopAecDump(); |
| 113 |
111 // Starts recording an RtcEventLog using an existing file until 10 minutes | 114 // Starts recording an RtcEventLog using an existing file until 10 minutes |
112 // pass or the StopRtcEventLog function is called. | 115 // pass or the StopRtcEventLog function is called. |
113 bool StartRtcEventLog(rtc::PlatformFile file); | 116 bool StartRtcEventLog(rtc::PlatformFile file); |
114 | 117 |
115 // Stops recording the RtcEventLog. | 118 // Stops recording the RtcEventLog. |
116 void StopRtcEventLog(); | 119 void StopRtcEventLog(); |
117 | 120 |
118 // Create a VoiceEngine Channel. | 121 // Create a VoiceEngine Channel. |
119 int CreateMediaVoiceChannel(); | 122 int CreateMediaVoiceChannel(); |
120 | 123 |
(...skipping 14 matching lines...) Expand all Loading... |
135 | 138 |
136 // webrtc::VoiceEngineObserver: | 139 // webrtc::VoiceEngineObserver: |
137 void CallbackOnError(int channel_id, int errCode) override; | 140 void CallbackOnError(int channel_id, int errCode) override; |
138 | 141 |
139 // Given the device type, name, and id, find device id. Return true and | 142 // Given the device type, name, and id, find device id. Return true and |
140 // set the output parameter rtc_id if successful. | 143 // set the output parameter rtc_id if successful. |
141 bool FindWebRtcAudioDeviceId( | 144 bool FindWebRtcAudioDeviceId( |
142 bool is_input, const std::string& dev_name, int dev_id, int* rtc_id); | 145 bool is_input, const std::string& dev_name, int dev_id, int* rtc_id); |
143 | 146 |
144 void StartAecDump(const std::string& filename); | 147 void StartAecDump(const std::string& filename); |
145 void StopAecDump(); | |
146 int CreateVoiceChannel(VoEWrapper* voe); | 148 int CreateVoiceChannel(VoEWrapper* voe); |
147 | 149 |
148 static const int kDefaultLogSeverity = rtc::LS_WARNING; | 150 static const int kDefaultLogSeverity = rtc::LS_WARNING; |
149 | 151 |
150 // The primary instance of WebRtc VoiceEngine. | 152 // The primary instance of WebRtc VoiceEngine. |
151 rtc::scoped_ptr<VoEWrapper> voe_wrapper_; | 153 rtc::scoped_ptr<VoEWrapper> voe_wrapper_; |
152 rtc::scoped_ptr<VoETraceWrapper> tracing_; | 154 rtc::scoped_ptr<VoETraceWrapper> tracing_; |
153 // The external audio device manager | 155 // The external audio device manager |
154 webrtc::AudioDeviceModule* adm_; | 156 webrtc::AudioDeviceModule* adm_; |
155 int log_filter_; | 157 int log_filter_; |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 // receive_channels_ can be read from WebRtc callback thread. Access from | 349 // receive_channels_ can be read from WebRtc callback thread. Access from |
348 // the WebRtc thread must be synchronized with edits on the worker thread. | 350 // the WebRtc thread must be synchronized with edits on the worker thread. |
349 // Reads on the worker thread are ok. | 351 // Reads on the worker thread are ok. |
350 std::vector<RtpHeaderExtension> receive_extensions_; | 352 std::vector<RtpHeaderExtension> receive_extensions_; |
351 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; | 353 std::vector<webrtc::RtpExtension> recv_rtp_extensions_; |
352 }; | 354 }; |
353 | 355 |
354 } // namespace cricket | 356 } // namespace cricket |
355 | 357 |
356 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_ | 358 #endif // TALK_MEDIA_WEBRTCVOICEENGINE_H_ |
OLD | NEW |