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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 virtual bool SetOutputVolume(int level) = 0; | 95 virtual bool SetOutputVolume(int level) = 0; |
96 | 96 |
97 // Gets the current microphone level, as a value between 0 and 10. | 97 // Gets the current microphone level, as a value between 0 and 10. |
98 virtual int GetInputLevel() = 0; | 98 virtual int GetInputLevel() = 0; |
99 | 99 |
100 virtual const std::vector<AudioCodec>& audio_codecs() = 0; | 100 virtual const std::vector<AudioCodec>& audio_codecs() = 0; |
101 virtual RtpCapabilities GetAudioCapabilities() = 0; | 101 virtual RtpCapabilities GetAudioCapabilities() = 0; |
102 virtual const std::vector<VideoCodec>& video_codecs() = 0; | 102 virtual const std::vector<VideoCodec>& video_codecs() = 0; |
103 virtual RtpCapabilities GetVideoCapabilities() = 0; | 103 virtual RtpCapabilities GetVideoCapabilities() = 0; |
104 | 104 |
105 // Starts AEC dump using existing file. | 105 // Starts AEC dump using existing file, a maximum file size in bytes can be |
106 virtual bool StartAecDump(rtc::PlatformFile file) = 0; | 106 // specified. Logging is stopped just before the size limit is exceeded. |
| 107 // If max_size_bytes is set to a value <= 0, no limit will be used. |
| 108 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) = 0; |
107 | 109 |
108 // Stops recording AEC dump. | 110 // Stops recording AEC dump. |
109 virtual void StopAecDump() = 0; | 111 virtual void StopAecDump() = 0; |
110 | 112 |
111 // Starts RtcEventLog using existing file. | 113 // Starts RtcEventLog using existing file. |
112 virtual bool StartRtcEventLog(rtc::PlatformFile file) = 0; | 114 virtual bool StartRtcEventLog(rtc::PlatformFile file) = 0; |
113 | 115 |
114 // Stops recording an RtcEventLog. | 116 // Stops recording an RtcEventLog. |
115 virtual void StopRtcEventLog() = 0; | 117 virtual void StopRtcEventLog() = 0; |
116 }; | 118 }; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 virtual RtpCapabilities GetAudioCapabilities() { | 180 virtual RtpCapabilities GetAudioCapabilities() { |
179 return voice_.GetCapabilities(); | 181 return voice_.GetCapabilities(); |
180 } | 182 } |
181 virtual const std::vector<VideoCodec>& video_codecs() { | 183 virtual const std::vector<VideoCodec>& video_codecs() { |
182 return video_.codecs(); | 184 return video_.codecs(); |
183 } | 185 } |
184 virtual RtpCapabilities GetVideoCapabilities() { | 186 virtual RtpCapabilities GetVideoCapabilities() { |
185 return video_.GetCapabilities(); | 187 return video_.GetCapabilities(); |
186 } | 188 } |
187 | 189 |
188 virtual bool StartAecDump(rtc::PlatformFile file) { | 190 virtual bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) { |
189 return voice_.StartAecDump(file); | 191 return voice_.StartAecDump(file, max_size_bytes); |
190 } | 192 } |
191 | 193 |
192 virtual void StopAecDump() { | 194 virtual void StopAecDump() { |
193 voice_.StopAecDump(); | 195 voice_.StopAecDump(); |
194 } | 196 } |
195 | 197 |
196 virtual bool StartRtcEventLog(rtc::PlatformFile file) { | 198 virtual bool StartRtcEventLog(rtc::PlatformFile file) { |
197 return voice_.StartRtcEventLog(file); | 199 return voice_.StartRtcEventLog(file); |
198 } | 200 } |
199 | 201 |
(...skipping 13 matching lines...) Expand all Loading... |
213 class DataEngineInterface { | 215 class DataEngineInterface { |
214 public: | 216 public: |
215 virtual ~DataEngineInterface() {} | 217 virtual ~DataEngineInterface() {} |
216 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; | 218 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; |
217 virtual const std::vector<DataCodec>& data_codecs() = 0; | 219 virtual const std::vector<DataCodec>& data_codecs() = 0; |
218 }; | 220 }; |
219 | 221 |
220 } // namespace cricket | 222 } // namespace cricket |
221 | 223 |
222 #endif // TALK_MEDIA_BASE_MEDIAENGINE_H_ | 224 #endif // TALK_MEDIA_BASE_MEDIAENGINE_H_ |
OLD | NEW |