OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
806 #endif | 806 #endif |
807 | 807 |
808 return kNoError; | 808 return kNoError; |
809 } | 809 } |
810 | 810 |
811 void AudioProcessingImpl::QueueRenderAudio(AudioBuffer* audio) { | 811 void AudioProcessingImpl::QueueRenderAudio(AudioBuffer* audio) { |
812 EchoCancellationImpl::PackRenderAudioBuffer(audio, num_output_channels(), | 812 EchoCancellationImpl::PackRenderAudioBuffer(audio, num_output_channels(), |
813 num_reverse_channels(), | 813 num_reverse_channels(), |
814 &aec_render_queue_buffer_); | 814 &aec_render_queue_buffer_); |
815 | 815 |
816 RTC_DCHECK_GE(160u, audio->num_frames_per_band()); | 816 RTC_DCHECK_GE(160, audio->num_frames_per_band()); |
817 | 817 |
818 // Insert the samples into the queue. | 818 // Insert the samples into the queue. |
819 if (!aec_render_signal_queue_->Insert(&aec_render_queue_buffer_)) { | 819 if (!aec_render_signal_queue_->Insert(&aec_render_queue_buffer_)) { |
820 // The data queue is full and needs to be emptied. | 820 // The data queue is full and needs to be emptied. |
821 EmptyQueuedRenderAudio(); | 821 EmptyQueuedRenderAudio(); |
822 | 822 |
823 // Retry the insert (should always work). | 823 // Retry the insert (should always work). |
824 bool result = aec_render_signal_queue_->Insert(&aec_render_queue_buffer_); | 824 bool result = aec_render_signal_queue_->Insert(&aec_render_queue_buffer_); |
825 RTC_DCHECK(result); | 825 RTC_DCHECK(result); |
826 } | 826 } |
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1879 capture_processing_format(kSampleRate16kHz), | 1879 capture_processing_format(kSampleRate16kHz), |
1880 split_rate(kSampleRate16kHz) {} | 1880 split_rate(kSampleRate16kHz) {} |
1881 | 1881 |
1882 AudioProcessingImpl::ApmCaptureState::~ApmCaptureState() = default; | 1882 AudioProcessingImpl::ApmCaptureState::~ApmCaptureState() = default; |
1883 | 1883 |
1884 AudioProcessingImpl::ApmRenderState::ApmRenderState() = default; | 1884 AudioProcessingImpl::ApmRenderState::ApmRenderState() = default; |
1885 | 1885 |
1886 AudioProcessingImpl::ApmRenderState::~ApmRenderState() = default; | 1886 AudioProcessingImpl::ApmRenderState::~ApmRenderState() = default; |
1887 | 1887 |
1888 } // namespace webrtc | 1888 } // namespace webrtc |
OLD | NEW |