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

Unified Diff: webrtc/voice_engine/channel_proxy.h

Issue 2705093002: Injectable audio encoders: WebRtcVoiceEngine and company (Closed)
Patch Set: AudioSendStream::Reconfigure() Created 3 years, 8 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
Index: webrtc/voice_engine/channel_proxy.h
diff --git a/webrtc/voice_engine/channel_proxy.h b/webrtc/voice_engine/channel_proxy.h
index b0d39e81a36c052e62ca0c2747356aaf36b3daf4..6889f5e8e22d0e6c5795638b6a8ef0312f6d0339 100644
--- a/webrtc/voice_engine/channel_proxy.h
+++ b/webrtc/voice_engine/channel_proxy.h
@@ -56,6 +56,8 @@ class ChannelProxy {
virtual bool SetEncoder(int payload_type,
std::unique_ptr<AudioEncoder> encoder);
+ virtual void ModifyEncoder(
+ rtc::FunctionView<void(std::unique_ptr<AudioEncoder>*)> modifier);
virtual void SetRTCPStatus(bool enable);
virtual void SetLocalSSRC(uint32_t ssrc);
@@ -96,10 +98,6 @@ class ChannelProxy {
GetAudioDecoderFactory() const;
virtual void SetChannelOutputVolumeScaling(float scaling);
virtual void SetRtcEventLog(RtcEventLog* event_log);
- virtual void EnableAudioNetworkAdaptor(const std::string& config_string);
- virtual void DisableAudioNetworkAdaptor();
- virtual void SetReceiverFrameLengthRange(int min_frame_length_ms,
- int max_frame_length_ms);
virtual AudioMixer::Source::AudioFrameInfo GetAudioFrameWithInfo(
int sample_rate_hz,
AudioFrame* audio_frame);
@@ -113,13 +111,6 @@ class ChannelProxy {
virtual void SetMinimumPlayoutDelay(int delay_ms);
virtual void SetRtcpRttStats(RtcpRttStats* rtcp_rtt_stats);
virtual bool GetRecCodec(CodecInst* codec_inst) const;
- virtual bool GetSendCodec(CodecInst* codec_inst) const;
- virtual bool SetVADStatus(bool enable);
- virtual bool SetCodecFECStatus(bool enable);
- virtual bool SetOpusDtx(bool enable);
- virtual bool SetOpusMaxPlaybackRate(int frequency_hz);
- virtual bool SetSendCodec(const CodecInst& codec_inst);
- virtual bool SetSendCNPayloadType(int type, PayloadFrequencies frequency);
private:
Channel* channel() const;

Powered by Google App Engine
This is Rietveld 408576698