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

Unified Diff: webrtc/voice_engine/include/voe_codec.h

Issue 2516993002: Pass SdpAudioFormat through Channel, without converting to CodecInst (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/voice_engine/channel.cc ('k') | webrtc/voice_engine/voe_codec_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/include/voe_codec.h
diff --git a/webrtc/voice_engine/include/voe_codec.h b/webrtc/voice_engine/include/voe_codec.h
index cedf47d6b9ddf3e963d73f21fc7d8caaa080cc20..3ca0cdfe5a385fe091be48e3e7e055e3f8278d4a 100644
--- a/webrtc/voice_engine/include/voe_codec.h
+++ b/webrtc/voice_engine/include/voe_codec.h
@@ -32,6 +32,7 @@
#define WEBRTC_VOICE_ENGINE_VOE_CODEC_H
#include "webrtc/common_types.h"
+#include "webrtc/modules/audio_coding/codecs/audio_format.h"
namespace webrtc {
@@ -79,6 +80,9 @@ class WEBRTC_DLLEXPORT VoECodec {
// message. The utilized parameters in the |codec| structure are:
// plname, plfreq, pltype and channels.
virtual int SetRecPayloadType(int channel, const CodecInst& codec) = 0;
+ virtual int SetRecPayloadType(int channel,
the sun 2016/11/21 08:37:05 Why do we need to add this to the legacy API?
ossu 2016/11/30 12:43:43 Should we go from AudioReceiveStream directly thro
+ int payload_type,
+ const SdpAudioFormat& format) = 0;
// Gets the actual payload type that is set for receiving a |codec| on a
// |channel|. The value it retrieves will either be the default payload
« no previous file with comments | « webrtc/voice_engine/channel.cc ('k') | webrtc/voice_engine/voe_codec_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698