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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 video_rtp_header_extensions() = 0; | 130 video_rtp_header_extensions() = 0; |
131 | 131 |
132 // Logging control | 132 // Logging control |
133 virtual void SetVoiceLogging(int min_sev, const char* filter) = 0; | 133 virtual void SetVoiceLogging(int min_sev, const char* filter) = 0; |
134 virtual void SetVideoLogging(int min_sev, const char* filter) = 0; | 134 virtual void SetVideoLogging(int min_sev, const char* filter) = 0; |
135 | 135 |
136 // Starts AEC dump using existing file. | 136 // Starts AEC dump using existing file. |
137 virtual bool StartAecDump(rtc::PlatformFile file) = 0; | 137 virtual bool StartAecDump(rtc::PlatformFile file) = 0; |
138 | 138 |
139 // Voice processors for effects. | 139 // Voice processors for effects. |
140 virtual bool RegisterVoiceProcessor(uint32 ssrc, | 140 virtual bool RegisterVoiceProcessor(uint32_t ssrc, |
141 VoiceProcessor* video_processor, | 141 VoiceProcessor* video_processor, |
142 MediaProcessorDirection direction) = 0; | 142 MediaProcessorDirection direction) = 0; |
143 virtual bool UnregisterVoiceProcessor(uint32 ssrc, | 143 virtual bool UnregisterVoiceProcessor(uint32_t ssrc, |
144 VoiceProcessor* video_processor, | 144 VoiceProcessor* video_processor, |
145 MediaProcessorDirection direction) = 0; | 145 MediaProcessorDirection direction) = 0; |
146 }; | 146 }; |
147 | 147 |
148 | 148 |
149 #if !defined(DISABLE_MEDIA_ENGINE_FACTORY) | 149 #if !defined(DISABLE_MEDIA_ENGINE_FACTORY) |
150 class MediaEngineFactory { | 150 class MediaEngineFactory { |
151 public: | 151 public: |
152 typedef cricket::MediaEngineInterface* (*MediaEngineCreateFunction)(); | 152 typedef cricket::MediaEngineInterface* (*MediaEngineCreateFunction)(); |
153 // Creates a media engine, using either the compiled system default or the | 153 // Creates a media engine, using either the compiled system default or the |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 voice_.SetLogging(min_sev, filter); | 243 voice_.SetLogging(min_sev, filter); |
244 } | 244 } |
245 virtual void SetVideoLogging(int min_sev, const char* filter) { | 245 virtual void SetVideoLogging(int min_sev, const char* filter) { |
246 video_.SetLogging(min_sev, filter); | 246 video_.SetLogging(min_sev, filter); |
247 } | 247 } |
248 | 248 |
249 virtual bool StartAecDump(rtc::PlatformFile file) { | 249 virtual bool StartAecDump(rtc::PlatformFile file) { |
250 return voice_.StartAecDump(file); | 250 return voice_.StartAecDump(file); |
251 } | 251 } |
252 | 252 |
253 virtual bool RegisterVoiceProcessor(uint32 ssrc, | 253 virtual bool RegisterVoiceProcessor(uint32_t ssrc, |
254 VoiceProcessor* processor, | 254 VoiceProcessor* processor, |
255 MediaProcessorDirection direction) { | 255 MediaProcessorDirection direction) { |
256 return voice_.RegisterProcessor(ssrc, processor, direction); | 256 return voice_.RegisterProcessor(ssrc, processor, direction); |
257 } | 257 } |
258 virtual bool UnregisterVoiceProcessor(uint32 ssrc, | 258 virtual bool UnregisterVoiceProcessor(uint32_t ssrc, |
259 VoiceProcessor* processor, | 259 VoiceProcessor* processor, |
260 MediaProcessorDirection direction) { | 260 MediaProcessorDirection direction) { |
261 return voice_.UnregisterProcessor(ssrc, processor, direction); | 261 return voice_.UnregisterProcessor(ssrc, processor, direction); |
262 } | 262 } |
263 | 263 |
264 protected: | 264 protected: |
265 VOICE voice_; | 265 VOICE voice_; |
266 VIDEO video_; | 266 VIDEO video_; |
267 }; | 267 }; |
268 | 268 |
(...skipping 20 matching lines...) Expand all Loading... |
289 } | 289 } |
290 bool SetOutputVolume(int level) { return true; } | 290 bool SetOutputVolume(int level) { return true; } |
291 int GetInputLevel() { return 0; } | 291 int GetInputLevel() { return 0; } |
292 bool SetLocalMonitor(bool enable) { return true; } | 292 bool SetLocalMonitor(bool enable) { return true; } |
293 const std::vector<AudioCodec>& codecs() { return codecs_; } | 293 const std::vector<AudioCodec>& codecs() { return codecs_; } |
294 const std::vector<RtpHeaderExtension>& rtp_header_extensions() { | 294 const std::vector<RtpHeaderExtension>& rtp_header_extensions() { |
295 return rtp_header_extensions_; | 295 return rtp_header_extensions_; |
296 } | 296 } |
297 void SetLogging(int min_sev, const char* filter) {} | 297 void SetLogging(int min_sev, const char* filter) {} |
298 bool StartAecDump(rtc::PlatformFile file) { return false; } | 298 bool StartAecDump(rtc::PlatformFile file) { return false; } |
299 bool RegisterProcessor(uint32 ssrc, | 299 bool RegisterProcessor(uint32_t ssrc, |
300 VoiceProcessor* voice_processor, | 300 VoiceProcessor* voice_processor, |
301 MediaProcessorDirection direction) { return true; } | 301 MediaProcessorDirection direction) { |
302 bool UnregisterProcessor(uint32 ssrc, | 302 return true; |
| 303 } |
| 304 bool UnregisterProcessor(uint32_t ssrc, |
303 VoiceProcessor* voice_processor, | 305 VoiceProcessor* voice_processor, |
304 MediaProcessorDirection direction) { return true; } | 306 MediaProcessorDirection direction) { |
| 307 return true; |
| 308 } |
305 | 309 |
306 private: | 310 private: |
307 std::vector<AudioCodec> codecs_; | 311 std::vector<AudioCodec> codecs_; |
308 std::vector<RtpHeaderExtension> rtp_header_extensions_; | 312 std::vector<RtpHeaderExtension> rtp_header_extensions_; |
309 }; | 313 }; |
310 | 314 |
311 // NullVideoEngine can be used with CompositeMediaEngine in the case where only | 315 // NullVideoEngine can be used with CompositeMediaEngine in the case where only |
312 // a voice engine is desired. | 316 // a voice engine is desired. |
313 class NullVideoEngine { | 317 class NullVideoEngine { |
314 public: | 318 public: |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 class DataEngineInterface { | 351 class DataEngineInterface { |
348 public: | 352 public: |
349 virtual ~DataEngineInterface() {} | 353 virtual ~DataEngineInterface() {} |
350 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; | 354 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; |
351 virtual const std::vector<DataCodec>& data_codecs() = 0; | 355 virtual const std::vector<DataCodec>& data_codecs() = 0; |
352 }; | 356 }; |
353 | 357 |
354 } // namespace cricket | 358 } // namespace cricket |
355 | 359 |
356 #endif // TALK_MEDIA_BASE_MEDIAENGINE_H_ | 360 #endif // TALK_MEDIA_BASE_MEDIAENGINE_H_ |
OLD | NEW |