| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  *  Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 2  *  Copyright (c) 2004 The WebRTC project authors. All Rights Reserved. | 
| 3  * | 3  * | 
| 4  *  Use of this source code is governed by a BSD-style license | 4  *  Use of this source code is governed by a BSD-style license | 
| 5  *  that can be found in the LICENSE file in the root of the source | 5  *  that can be found in the LICENSE file in the root of the source | 
| 6  *  tree. An additional intellectual property rights grant can be found | 6  *  tree. An additional intellectual property rights grant can be found | 
| 7  *  in the file PATENTS.  All contributing project authors may | 7  *  in the file PATENTS.  All contributing project authors may | 
| 8  *  be found in the AUTHORS file in the root of the source tree. | 8  *  be found in the AUTHORS file in the root of the source tree. | 
| 9  */ | 9  */ | 
| 10 | 10 | 
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 57   virtual bool Init(rtc::Thread* worker_thread) = 0; | 57   virtual bool Init(rtc::Thread* worker_thread) = 0; | 
| 58   // Shuts down the engine. | 58   // Shuts down the engine. | 
| 59   virtual void Terminate() = 0; | 59   virtual void Terminate() = 0; | 
| 60   // TODO(solenberg): Remove once VoE API refactoring is done. | 60   // TODO(solenberg): Remove once VoE API refactoring is done. | 
| 61   virtual rtc::scoped_refptr<webrtc::AudioState> GetAudioState() const = 0; | 61   virtual rtc::scoped_refptr<webrtc::AudioState> GetAudioState() const = 0; | 
| 62 | 62 | 
| 63   // MediaChannel creation | 63   // MediaChannel creation | 
| 64   // Creates a voice media channel. Returns NULL on failure. | 64   // Creates a voice media channel. Returns NULL on failure. | 
| 65   virtual VoiceMediaChannel* CreateChannel( | 65   virtual VoiceMediaChannel* CreateChannel( | 
| 66       webrtc::Call* call, | 66       webrtc::Call* call, | 
|  | 67       const MediaConfig& config, | 
| 67       const AudioOptions& options) = 0; | 68       const AudioOptions& options) = 0; | 
| 68   // Creates a video media channel, paired with the specified voice channel. | 69   // Creates a video media channel, paired with the specified voice channel. | 
| 69   // Returns NULL on failure. | 70   // Returns NULL on failure. | 
| 70   virtual VideoMediaChannel* CreateVideoChannel( | 71   virtual VideoMediaChannel* CreateVideoChannel( | 
| 71       webrtc::Call* call, | 72       webrtc::Call* call, | 
|  | 73       const MediaConfig& config, | 
| 72       const VideoOptions& options) = 0; | 74       const VideoOptions& options) = 0; | 
| 73 | 75 | 
| 74   // Device configuration | 76   // Device configuration | 
| 75   // Gets the current speaker volume, as a value between 0 and 255. | 77   // Gets the current speaker volume, as a value between 0 and 255. | 
| 76   virtual bool GetOutputVolume(int* level) = 0; | 78   virtual bool GetOutputVolume(int* level) = 0; | 
| 77   // Sets the current speaker volume, as a value between 0 and 255. | 79   // Sets the current speaker volume, as a value between 0 and 255. | 
| 78   virtual bool SetOutputVolume(int level) = 0; | 80   virtual bool SetOutputVolume(int level) = 0; | 
| 79 | 81 | 
| 80   // Gets the current microphone level, as a value between 0 and 10. | 82   // Gets the current microphone level, as a value between 0 and 10. | 
| 81   virtual int GetInputLevel() = 0; | 83   virtual int GetInputLevel() = 0; | 
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 132     return true; | 134     return true; | 
| 133   } | 135   } | 
| 134   virtual void Terminate() { | 136   virtual void Terminate() { | 
| 135     voice_.Terminate(); | 137     voice_.Terminate(); | 
| 136   } | 138   } | 
| 137 | 139 | 
| 138   virtual rtc::scoped_refptr<webrtc::AudioState> GetAudioState() const { | 140   virtual rtc::scoped_refptr<webrtc::AudioState> GetAudioState() const { | 
| 139     return voice_.GetAudioState(); | 141     return voice_.GetAudioState(); | 
| 140   } | 142   } | 
| 141   virtual VoiceMediaChannel* CreateChannel(webrtc::Call* call, | 143   virtual VoiceMediaChannel* CreateChannel(webrtc::Call* call, | 
|  | 144                                            const MediaConfig& config, | 
| 142                                            const AudioOptions& options) { | 145                                            const AudioOptions& options) { | 
| 143     return voice_.CreateChannel(call, options); | 146     return voice_.CreateChannel(call, config, options); | 
| 144   } | 147   } | 
| 145   virtual VideoMediaChannel* CreateVideoChannel(webrtc::Call* call, | 148   virtual VideoMediaChannel* CreateVideoChannel( | 
| 146                                                 const VideoOptions& options) { | 149       webrtc::Call* call, | 
| 147     return video_.CreateChannel(call, options); | 150       const MediaConfig& config, | 
|  | 151       const VideoOptions& options) { | 
|  | 152     return video_.CreateChannel(call, config, options); | 
| 148   } | 153   } | 
| 149 | 154 | 
| 150   virtual bool GetOutputVolume(int* level) { | 155   virtual bool GetOutputVolume(int* level) { | 
| 151     return voice_.GetOutputVolume(level); | 156     return voice_.GetOutputVolume(level); | 
| 152   } | 157   } | 
| 153   virtual bool SetOutputVolume(int level) { | 158   virtual bool SetOutputVolume(int level) { | 
| 154     return voice_.SetOutputVolume(level); | 159     return voice_.SetOutputVolume(level); | 
| 155   } | 160   } | 
| 156 | 161 | 
| 157   virtual int GetInputLevel() { | 162   virtual int GetInputLevel() { | 
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 198 class DataEngineInterface { | 203 class DataEngineInterface { | 
| 199  public: | 204  public: | 
| 200   virtual ~DataEngineInterface() {} | 205   virtual ~DataEngineInterface() {} | 
| 201   virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; | 206   virtual DataMediaChannel* CreateChannel(DataChannelType type) = 0; | 
| 202   virtual const std::vector<DataCodec>& data_codecs() = 0; | 207   virtual const std::vector<DataCodec>& data_codecs() = 0; | 
| 203 }; | 208 }; | 
| 204 | 209 | 
| 205 }  // namespace cricket | 210 }  // namespace cricket | 
| 206 | 211 | 
| 207 #endif  // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ | 212 #endif  // WEBRTC_MEDIA_BASE_MEDIAENGINE_H_ | 
| OLD | NEW | 
|---|