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

Unified Diff: webrtc/media/engine/fakewebrtcvoiceengine.h

Issue 2062193002: Add AudioReceiveStream::SetGain() method and use that in WVoMC::SetOutputVolume(). (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: bad test 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 | « webrtc/media/engine/fakewebrtccall.cc ('k') | webrtc/media/engine/webrtcvoiceengine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/engine/fakewebrtcvoiceengine.h
diff --git a/webrtc/media/engine/fakewebrtcvoiceengine.h b/webrtc/media/engine/fakewebrtcvoiceengine.h
index 8d15f5249e0bbf3c4c0049b0d6a24c3736323f23..4e3ced6c35f8765c212abd39dc571e8d36e5a0f5 100644
--- a/webrtc/media/engine/fakewebrtcvoiceengine.h
+++ b/webrtc/media/engine/fakewebrtcvoiceengine.h
@@ -129,7 +129,6 @@ class FakeWebRtcVoiceEngine
memset(&send_codec, 0, sizeof(send_codec));
}
bool playout = false;
- float volume_scale = 1.0f;
bool vad = false;
bool codec_fec = false;
int max_encoding_bandwidth = 0;
@@ -441,16 +440,8 @@ class FakeWebRtcVoiceEngine
WEBRTC_STUB(GetSpeechOutputLevel, (int, unsigned int&));
WEBRTC_STUB(GetSpeechInputLevelFullRange, (unsigned int&));
WEBRTC_STUB(GetSpeechOutputLevelFullRange, (int, unsigned int&));
- WEBRTC_FUNC(SetChannelOutputVolumeScaling, (int channel, float scale)) {
- WEBRTC_CHECK_CHANNEL(channel);
- channels_[channel]->volume_scale= scale;
- return 0;
- }
- WEBRTC_FUNC(GetChannelOutputVolumeScaling, (int channel, float& scale)) {
- WEBRTC_CHECK_CHANNEL(channel);
- scale = channels_[channel]->volume_scale;
- return 0;
- }
+ WEBRTC_STUB(SetChannelOutputVolumeScaling, (int channel, float scale));
+ WEBRTC_STUB(GetChannelOutputVolumeScaling, (int channel, float& scale));
WEBRTC_STUB(SetOutputVolumePan, (int channel, float left, float right));
WEBRTC_STUB(GetOutputVolumePan, (int channel, float& left, float& right));
« no previous file with comments | « webrtc/media/engine/fakewebrtccall.cc ('k') | webrtc/media/engine/webrtcvoiceengine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698