Index: webrtc/modules/audio_coding/codecs/audio_format.cc |
diff --git a/webrtc/modules/audio_coding/codecs/audio_format.cc b/webrtc/modules/audio_coding/codecs/audio_format.cc |
index ebd7cb030b4fdbcec19eaef2cbc09cff856ec376..6642df2e7758135b3f5e14d57da4271eb74e58ad 100644 |
--- a/webrtc/modules/audio_coding/codecs/audio_format.cc |
+++ b/webrtc/modules/audio_coding/codecs/audio_format.cc |
@@ -22,6 +22,11 @@ SdpAudioFormat::SdpAudioFormat(const char* name, |
int num_channels) |
: name(name), clockrate_hz(clockrate_hz), num_channels(num_channels) {} |
+SdpAudioFormat::SdpAudioFormat(const std::string& name, |
+ int clockrate_hz, |
+ int num_channels) |
+ : name(name), clockrate_hz(clockrate_hz), num_channels(num_channels) {} |
+ |
SdpAudioFormat::SdpAudioFormat(const char* name, |
int clockrate_hz, |
int num_channels, |
@@ -31,6 +36,15 @@ SdpAudioFormat::SdpAudioFormat(const char* name, |
num_channels(num_channels), |
parameters(std::move(param)) {} |
+SdpAudioFormat::SdpAudioFormat(const std::string& name, |
+ int clockrate_hz, |
+ int num_channels, |
+ Parameters&& param) |
+ : name(name), |
+ clockrate_hz(clockrate_hz), |
+ num_channels(num_channels), |
+ parameters(std::move(param)) {} |
+ |
SdpAudioFormat::~SdpAudioFormat() = default; |
SdpAudioFormat& SdpAudioFormat::operator=(const SdpAudioFormat&) = default; |
SdpAudioFormat& SdpAudioFormat::operator=(SdpAudioFormat&&) = default; |