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

Unified Diff: webrtc/media/base/fakemediaengine.h

Issue 2059403002: Removed GetOutputVolume() and SetOutputVolume(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/media/base/mediaengine.h » ('j') | webrtc/pc/channelmanager.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/fakemediaengine.h
diff --git a/webrtc/media/base/fakemediaengine.h b/webrtc/media/base/fakemediaengine.h
index 784967ac4f0d8db5c9b89c0890995fe9de97031a..9ca128d7599d4b5c7b0272a46dc589f4d305ada3 100644
--- a/webrtc/media/base/fakemediaengine.h
+++ b/webrtc/media/base/fakemediaengine.h
@@ -739,8 +739,7 @@ class FakeVoiceEngine : public FakeBaseEngine {
FakeVoiceEngine(
webrtc::AudioDeviceModule* adm,
const rtc::scoped_refptr<webrtc::AudioDecoderFactory>&
- audio_decoder_factory)
- : output_volume_(-1) {
+ audio_decoder_factory) {
// Add a fake audio codec. Note that the name must not be "" as there are
// sanity checks against that.
codecs_.push_back(AudioCodec(101, "fake_audio_codec", 0, 0, 1));
@@ -770,15 +769,6 @@ class FakeVoiceEngine : public FakeBaseEngine {
const std::vector<AudioCodec>& codecs() { return codecs_; }
void SetCodecs(const std::vector<AudioCodec> codecs) { codecs_ = codecs; }
- bool GetOutputVolume(int* level) {
- *level = output_volume_;
- return true;
- }
- bool SetOutputVolume(int level) {
- output_volume_ = level;
- return true;
- }
-
int GetInputLevel() { return 0; }
bool StartAecDump(rtc::PlatformFile file, int64_t max_size_bytes) {
@@ -796,7 +786,6 @@ class FakeVoiceEngine : public FakeBaseEngine {
private:
std::vector<FakeVoiceMediaChannel*> channels_;
std::vector<AudioCodec> codecs_;
- int output_volume_;
friend class FakeMediaEngine;
};
@@ -890,7 +879,6 @@ class FakeMediaEngine :
return video_.GetChannel(index);
}
- int output_volume() const { return voice_.output_volume_; }
bool capture() const { return video_.capture_; }
bool options_changed() const {
return video_.options_changed_;
« no previous file with comments | « no previous file | webrtc/media/base/mediaengine.h » ('j') | webrtc/pc/channelmanager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698