| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // Device selection | 106 // Device selection |
| 107 virtual bool SetSoundDevices(const Device* in_device, | 107 virtual bool SetSoundDevices(const Device* in_device, |
| 108 const Device* out_device) = 0; | 108 const Device* out_device) = 0; |
| 109 | 109 |
| 110 // Device configuration | 110 // Device configuration |
| 111 // Gets the current speaker volume, as a value between 0 and 255. | 111 // Gets the current speaker volume, as a value between 0 and 255. |
| 112 virtual bool GetOutputVolume(int* level) = 0; | 112 virtual bool GetOutputVolume(int* level) = 0; |
| 113 // Sets the current speaker volume, as a value between 0 and 255. | 113 // Sets the current speaker volume, as a value between 0 and 255. |
| 114 virtual bool SetOutputVolume(int level) = 0; | 114 virtual bool SetOutputVolume(int level) = 0; |
| 115 | 115 |
| 116 // Local monitoring | |
| 117 // Gets the current microphone level, as a value between 0 and 10. | 116 // Gets the current microphone level, as a value between 0 and 10. |
| 118 virtual int GetInputLevel() = 0; | 117 virtual int GetInputLevel() = 0; |
| 119 // Starts or stops the local microphone. Useful if local mic info is needed | |
| 120 // prior to a call being connected; the mic will be started automatically | |
| 121 // when a VoiceMediaChannel starts sending. | |
| 122 virtual bool SetLocalMonitor(bool enable) = 0; | |
| 123 // Installs a callback for raw frames from the local camera. | |
| 124 | 118 |
| 125 virtual const std::vector<AudioCodec>& audio_codecs() = 0; | 119 virtual const std::vector<AudioCodec>& audio_codecs() = 0; |
| 126 virtual const std::vector<RtpHeaderExtension>& | 120 virtual const std::vector<RtpHeaderExtension>& |
| 127 audio_rtp_header_extensions() = 0; | 121 audio_rtp_header_extensions() = 0; |
| 128 virtual const std::vector<VideoCodec>& video_codecs() = 0; | 122 virtual const std::vector<VideoCodec>& video_codecs() = 0; |
| 129 virtual const std::vector<RtpHeaderExtension>& | 123 virtual const std::vector<RtpHeaderExtension>& |
| 130 video_rtp_header_extensions() = 0; | 124 video_rtp_header_extensions() = 0; |
| 131 | 125 |
| 132 // Logging control | 126 // Logging control |
| 133 virtual void SetVoiceLogging(int min_sev, const char* filter) = 0; | 127 virtual void SetVoiceLogging(int min_sev, const char* filter) = 0; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 virtual bool GetOutputVolume(int* level) { | 210 virtual bool GetOutputVolume(int* level) { |
| 217 return voice_.GetOutputVolume(level); | 211 return voice_.GetOutputVolume(level); |
| 218 } | 212 } |
| 219 virtual bool SetOutputVolume(int level) { | 213 virtual bool SetOutputVolume(int level) { |
| 220 return voice_.SetOutputVolume(level); | 214 return voice_.SetOutputVolume(level); |
| 221 } | 215 } |
| 222 | 216 |
| 223 virtual int GetInputLevel() { | 217 virtual int GetInputLevel() { |
| 224 return voice_.GetInputLevel(); | 218 return voice_.GetInputLevel(); |
| 225 } | 219 } |
| 226 virtual bool SetLocalMonitor(bool enable) { | |
| 227 return voice_.SetLocalMonitor(enable); | |
| 228 } | |
| 229 virtual const std::vector<AudioCodec>& audio_codecs() { | 220 virtual const std::vector<AudioCodec>& audio_codecs() { |
| 230 return voice_.codecs(); | 221 return voice_.codecs(); |
| 231 } | 222 } |
| 232 virtual const std::vector<RtpHeaderExtension>& audio_rtp_header_extensions() { | 223 virtual const std::vector<RtpHeaderExtension>& audio_rtp_header_extensions() { |
| 233 return voice_.rtp_header_extensions(); | 224 return voice_.rtp_header_extensions(); |
| 234 } | 225 } |
| 235 virtual const std::vector<VideoCodec>& video_codecs() { | 226 virtual const std::vector<VideoCodec>& video_codecs() { |
| 236 return video_.codecs(); | 227 return video_.codecs(); |
| 237 } | 228 } |
| 238 virtual const std::vector<RtpHeaderExtension>& video_rtp_header_extensions() { | 229 virtual const std::vector<RtpHeaderExtension>& video_rtp_header_extensions() { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 bool SetOptions(const AudioOptions& options) { return true; } | 273 bool SetOptions(const AudioOptions& options) { return true; } |
| 283 bool SetDevices(const Device* in_device, const Device* out_device) { | 274 bool SetDevices(const Device* in_device, const Device* out_device) { |
| 284 return true; | 275 return true; |
| 285 } | 276 } |
| 286 bool GetOutputVolume(int* level) { | 277 bool GetOutputVolume(int* level) { |
| 287 *level = 0; | 278 *level = 0; |
| 288 return true; | 279 return true; |
| 289 } | 280 } |
| 290 bool SetOutputVolume(int level) { return true; } | 281 bool SetOutputVolume(int level) { return true; } |
| 291 int GetInputLevel() { return 0; } | 282 int GetInputLevel() { return 0; } |
| 292 bool SetLocalMonitor(bool enable) { return true; } | |
| 293 const std::vector<AudioCodec>& codecs() { return codecs_; } | 283 const std::vector<AudioCodec>& codecs() { return codecs_; } |
| 294 const std::vector<RtpHeaderExtension>& rtp_header_extensions() { | 284 const std::vector<RtpHeaderExtension>& rtp_header_extensions() { |
| 295 return rtp_header_extensions_; | 285 return rtp_header_extensions_; |
| 296 } | 286 } |
| 297 void SetLogging(int min_sev, const char* filter) {} | 287 void SetLogging(int min_sev, const char* filter) {} |
| 298 bool StartAecDump(rtc::PlatformFile file) { return false; } | 288 bool StartAecDump(rtc::PlatformFile file) { return false; } |
| 299 bool RegisterProcessor(uint32 ssrc, | 289 bool RegisterProcessor(uint32 ssrc, |
| 300 VoiceProcessor* voice_processor, | 290 VoiceProcessor* voice_processor, |
| 301 MediaProcessorDirection direction) { return true; } | 291 MediaProcessorDirection direction) { return true; } |
| 302 bool UnregisterProcessor(uint32 ssrc, | 292 bool UnregisterProcessor(uint32 ssrc, |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 class DataEngineInterface { | 337 class DataEngineInterface { |
| 348 public: | 338 public: |
| 349 virtual ~DataEngineInterface() {} | 339 virtual ~DataEngineInterface() {} |
| 350 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; | 340 virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; |
| 351 virtual const std::vector<DataCodec>& data_codecs() = 0; | 341 virtual const std::vector<DataCodec>& data_codecs() = 0; |
| 352 }; | 342 }; |
| 353 | 343 |
| 354 } // namespace cricket | 344 } // namespace cricket |
| 355 | 345 |
| 356 #endif // TALK_MEDIA_BASE_MEDIAENGINE_H_ | 346 #endif // TALK_MEDIA_BASE_MEDIAENGINE_H_ |
| OLD | NEW |