Introduce NetEq::Config::ToString and use it in NetEq's constructor

R=minyue@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/54559004

Cr-Commit-Position: refs/heads/master@{#9279}
This commit is contained in:
Henrik Lundin
2015-05-25 16:58:41 +02:00
parent e982a70ae3
commit 905495cfaa
3 changed files with 16 additions and 0 deletions

View File

@ -94,6 +94,7 @@ NetEqImpl::NetEqImpl(const NetEq::Config& config,
playout_mode_(config.playout_mode),
decoded_packet_sequence_number_(-1),
decoded_packet_timestamp_(0) {
LOG(LS_INFO) << "NetEq config: " << config.ToString();
int fs = config.sample_rate_hz;
if (fs != 8000 && fs != 16000 && fs != 32000 && fs != 48000) {
LOG(LS_ERROR) << "Sample rate " << fs << " Hz not supported. " <<