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

Side by Side Diff: talk/media/webrtc/webrtcvoiceengine.cc

Issue 1364093002: Remove SetAudioDelayOffset() and friends. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@lj_remove_getcapabilities
Patch Set: rebase Created 5 years, 3 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 unified diff | Download patch
« no previous file with comments | « talk/media/webrtc/webrtcvoiceengine.h ('k') | talk/session/media/channelmanager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 870 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 if (options.playout_sample_rate.Get(&playout_sample_rate)) { 881 if (options.playout_sample_rate.Get(&playout_sample_rate)) {
882 LOG(LS_INFO) << "Playout sample rate is " << playout_sample_rate; 882 LOG(LS_INFO) << "Playout sample rate is " << playout_sample_rate;
883 if (voe_wrapper_->hw()->SetPlayoutSampleRate(playout_sample_rate)) { 883 if (voe_wrapper_->hw()->SetPlayoutSampleRate(playout_sample_rate)) {
884 LOG_RTCERR1(SetPlayoutSampleRate, playout_sample_rate); 884 LOG_RTCERR1(SetPlayoutSampleRate, playout_sample_rate);
885 } 885 }
886 } 886 }
887 887
888 return true; 888 return true;
889 } 889 }
890 890
891 bool WebRtcVoiceEngine::SetDelayOffset(int offset) {
892 voe_wrapper_->processing()->SetDelayOffsetMs(offset);
893 if (voe_wrapper_->processing()->DelayOffsetMs() != offset) {
894 LOG_RTCERR1(SetDelayOffsetMs, offset);
895 return false;
896 }
897
898 return true;
899 }
900
901 struct ResumeEntry { 891 struct ResumeEntry {
902 ResumeEntry(WebRtcVoiceMediaChannel *c, bool p, SendFlags s) 892 ResumeEntry(WebRtcVoiceMediaChannel *c, bool p, SendFlags s)
903 : channel(c), 893 : channel(c),
904 playout(p), 894 playout(p),
905 send(s) { 895 send(s) {
906 } 896 }
907 897
908 WebRtcVoiceMediaChannel *channel; 898 WebRtcVoiceMediaChannel *channel;
909 bool playout; 899 bool playout;
910 SendFlags send; 900 SendFlags send;
(...skipping 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after
3295 LOG(LS_WARNING) << "Unknown codec " << ToString(codec); 3285 LOG(LS_WARNING) << "Unknown codec " << ToString(codec);
3296 return false; 3286 return false;
3297 } 3287 }
3298 } 3288 }
3299 return true; 3289 return true;
3300 } 3290 }
3301 3291
3302 } // namespace cricket 3292 } // namespace cricket
3303 3293
3304 #endif // HAVE_WEBRTC_VOICE 3294 #endif // HAVE_WEBRTC_VOICE
OLDNEW
« no previous file with comments | « talk/media/webrtc/webrtcvoiceengine.h ('k') | talk/session/media/channelmanager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698