OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2010 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 bool IsInited() const { return inited_; } | 50 bool IsInited() const { return inited_; } |
51 int GetLastChannel() const { return last_channel_; } | 51 int GetLastChannel() const { return last_channel_; } |
52 int GetNumChannels() const { return static_cast<int>(channels_.size()); } | 52 int GetNumChannels() const { return static_cast<int>(channels_.size()); } |
53 void set_fail_create_channel(bool fail_create_channel) { | 53 void set_fail_create_channel(bool fail_create_channel) { |
54 fail_create_channel_ = fail_create_channel; | 54 fail_create_channel_ = fail_create_channel; |
55 } | 55 } |
56 | 56 |
57 WEBRTC_STUB(Release, ()); | 57 WEBRTC_STUB(Release, ()); |
58 | 58 |
59 // webrtc::VoEBase | 59 // webrtc::VoEBase |
60 WEBRTC_STUB(RegisterVoiceEngineObserver, ( | |
61 webrtc::VoiceEngineObserver& observer)); | |
62 WEBRTC_STUB(DeRegisterVoiceEngineObserver, ()); | |
63 WEBRTC_FUNC(Init, | 60 WEBRTC_FUNC(Init, |
64 (webrtc::AudioDeviceModule* adm, | 61 (webrtc::AudioDeviceModule* adm, |
65 webrtc::AudioProcessing* audioproc, | 62 webrtc::AudioProcessing* audioproc, |
66 const rtc::scoped_refptr<webrtc::AudioDecoderFactory>& | 63 const rtc::scoped_refptr<webrtc::AudioDecoderFactory>& |
67 decoder_factory)) { | 64 decoder_factory)) { |
68 inited_ = true; | 65 inited_ = true; |
69 return 0; | 66 return 0; |
70 } | 67 } |
71 WEBRTC_FUNC(Terminate, ()) { | 68 WEBRTC_FUNC(Terminate, ()) { |
72 inited_ = false; | 69 inited_ = false; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 std::map<int, Channel*> channels_; | 117 std::map<int, Channel*> channels_; |
121 bool fail_create_channel_ = false; | 118 bool fail_create_channel_ = false; |
122 webrtc::voe::TransmitMixer* transmit_mixer_ = nullptr; | 119 webrtc::voe::TransmitMixer* transmit_mixer_ = nullptr; |
123 | 120 |
124 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FakeWebRtcVoiceEngine); | 121 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(FakeWebRtcVoiceEngine); |
125 }; | 122 }; |
126 | 123 |
127 } // namespace cricket | 124 } // namespace cricket |
128 | 125 |
129 #endif // MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_ | 126 #endif // MEDIA_ENGINE_FAKEWEBRTCVOICEENGINE_H_ |
OLD | NEW |