Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: webrtc/test/fake_voice_engine.h

Issue 1403363003: Move VoiceEngineObserver into AudioSendStream so that we detect typing noises and return properly i… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: better comments Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 int reportingThreshold, 128 int reportingThreshold,
129 int penaltyDecay, 129 int penaltyDecay,
130 int typeEventDelay = 0) override { 130 int typeEventDelay = 0) override {
131 return -1; 131 return -1;
132 } 132 }
133 void EnableStereoChannelSwapping(bool enable) override {} 133 void EnableStereoChannelSwapping(bool enable) override {}
134 bool IsStereoChannelSwappingEnabled() override { return false; } 134 bool IsStereoChannelSwappingEnabled() override { return false; }
135 135
136 // VoEBase 136 // VoEBase
137 int RegisterVoiceEngineObserver(VoiceEngineObserver& observer) override { 137 int RegisterVoiceEngineObserver(VoiceEngineObserver& observer) override {
138 return -1; 138 return 0;
139 } 139 }
140 int DeRegisterVoiceEngineObserver() override { return -1; } 140 int DeRegisterVoiceEngineObserver() override { return 0; }
141 int Init(AudioDeviceModule* external_adm = NULL, 141 int Init(AudioDeviceModule* external_adm = NULL,
142 AudioProcessing* audioproc = NULL) override { return -1; } 142 AudioProcessing* audioproc = NULL) override { return -1; }
143 AudioProcessing* audio_processing() override { return nullptr; } 143 AudioProcessing* audio_processing() override { return nullptr; }
144 int Terminate() override { return -1; } 144 int Terminate() override { return -1; }
145 int CreateChannel() override { return -1; } 145 int CreateChannel() override { return -1; }
146 int CreateChannel(const Config& config) override { return -1; } 146 int CreateChannel(const Config& config) override { return -1; }
147 int DeleteChannel(int channel) override { return -1; } 147 int DeleteChannel(int channel) override { return -1; }
148 int StartReceive(int channel) override { return -1; } 148 int StartReceive(int channel) override { return -1; }
149 int StopReceive(int channel) override { return -1; } 149 int StopReceive(int channel) override { return -1; }
150 int StartPlayout(int channel) override { return -1; } 150 int StartPlayout(int channel) override { return -1; }
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
495 return -1; 495 return -1;
496 } 496 }
497 int GetOutputVolumePan(int channel, float& left, float& right) override { 497 int GetOutputVolumePan(int channel, float& left, float& right) override {
498 return -1; 498 return -1;
499 } 499 }
500 }; 500 };
501 } // namespace test 501 } // namespace test
502 } // namespace webrtc 502 } // namespace webrtc
503 503
504 #endif // WEBRTC_AUDIO_FAKE_VOICE_ENGINE_H_ 504 #endif // WEBRTC_AUDIO_FAKE_VOICE_ENGINE_H_
OLDNEW
« webrtc/call.h ('K') | « webrtc/call/call_unittest.cc ('k') | webrtc/webrtc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698