| OLD | NEW |
| 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 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 else | 837 else |
| 838 StopAecDump(); | 838 StopAecDump(); |
| 839 } | 839 } |
| 840 | 840 |
| 841 webrtc::Config config; | 841 webrtc::Config config; |
| 842 | 842 |
| 843 delay_agnostic_aec_.SetFrom(options.delay_agnostic_aec); | 843 delay_agnostic_aec_.SetFrom(options.delay_agnostic_aec); |
| 844 bool delay_agnostic_aec; | 844 bool delay_agnostic_aec; |
| 845 if (delay_agnostic_aec_.Get(&delay_agnostic_aec)) { | 845 if (delay_agnostic_aec_.Get(&delay_agnostic_aec)) { |
| 846 LOG(LS_INFO) << "Delay agnostic aec is enabled? " << delay_agnostic_aec; | 846 LOG(LS_INFO) << "Delay agnostic aec is enabled? " << delay_agnostic_aec; |
| 847 config.Set<webrtc::ReportedDelay>( | 847 config.Set<webrtc::DelayAgnostic>( |
| 848 new webrtc::ReportedDelay(!delay_agnostic_aec)); | 848 new webrtc::DelayAgnostic(delay_agnostic_aec)); |
| 849 } | 849 } |
| 850 | 850 |
| 851 extended_filter_aec_.SetFrom(options.extended_filter_aec); | 851 extended_filter_aec_.SetFrom(options.extended_filter_aec); |
| 852 bool extended_filter; | 852 bool extended_filter; |
| 853 if (extended_filter_aec_.Get(&extended_filter)) { | 853 if (extended_filter_aec_.Get(&extended_filter)) { |
| 854 LOG(LS_INFO) << "Extended filter aec is enabled? " << extended_filter; | 854 LOG(LS_INFO) << "Extended filter aec is enabled? " << extended_filter; |
| 855 config.Set<webrtc::ExtendedFilter>( | 855 config.Set<webrtc::ExtendedFilter>( |
| 856 new webrtc::ExtendedFilter(extended_filter)); | 856 new webrtc::ExtendedFilter(extended_filter)); |
| 857 } | 857 } |
| 858 | 858 |
| (...skipping 2796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3655 | 3655 |
| 3656 int WebRtcSoundclipStream::Rewind() { | 3656 int WebRtcSoundclipStream::Rewind() { |
| 3657 mem_.Rewind(); | 3657 mem_.Rewind(); |
| 3658 // Return -1 to keep VoiceEngine from looping. | 3658 // Return -1 to keep VoiceEngine from looping. |
| 3659 return (loop_) ? 0 : -1; | 3659 return (loop_) ? 0 : -1; |
| 3660 } | 3660 } |
| 3661 | 3661 |
| 3662 } // namespace cricket | 3662 } // namespace cricket |
| 3663 | 3663 |
| 3664 #endif // HAVE_WEBRTC_VOICE | 3664 #endif // HAVE_WEBRTC_VOICE |
| OLD | NEW |