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 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |