| 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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 670                        sizeof(reverse_cb->channels()[i][0])); | 670                        sizeof(reverse_cb->channels()[i][0])); | 
| 671           } | 671           } | 
| 672         } | 672         } | 
| 673 | 673 | 
| 674         if (perf_testing) { | 674         if (perf_testing) { | 
| 675           t0 = TickTime::Now(); | 675           t0 = TickTime::Now(); | 
| 676         } | 676         } | 
| 677 | 677 | 
| 678         if (msg.has_data()) { | 678         if (msg.has_data()) { | 
| 679           ASSERT_EQ(apm->kNoError, | 679           ASSERT_EQ(apm->kNoError, | 
| 680                     apm->AnalyzeReverseStream(&far_frame)); | 680                     apm->ProcessReverseStream(&far_frame)); | 
| 681         } else { | 681         } else { | 
| 682           ASSERT_EQ(apm->kNoError, | 682           ASSERT_EQ(apm->kNoError, | 
| 683                     apm->AnalyzeReverseStream( | 683                     apm->AnalyzeReverseStream( | 
| 684                         reverse_cb->channels(), | 684                         reverse_cb->channels(), | 
| 685                         far_frame.samples_per_channel_, | 685                         far_frame.samples_per_channel_, | 
| 686                         far_frame.sample_rate_hz_, | 686                         far_frame.sample_rate_hz_, | 
| 687                         LayoutFromChannels(far_frame.num_channels_))); | 687                         LayoutFromChannels(far_frame.num_channels_))); | 
| 688         } | 688         } | 
| 689 | 689 | 
| 690         if (perf_testing) { | 690         if (perf_testing) { | 
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 918           } | 918           } | 
| 919         } else { | 919         } else { | 
| 920           ASSERT_EQ(size, read_count); | 920           ASSERT_EQ(size, read_count); | 
| 921         } | 921         } | 
| 922 | 922 | 
| 923         if (perf_testing) { | 923         if (perf_testing) { | 
| 924           t0 = TickTime::Now(); | 924           t0 = TickTime::Now(); | 
| 925         } | 925         } | 
| 926 | 926 | 
| 927         ASSERT_EQ(apm->kNoError, | 927         ASSERT_EQ(apm->kNoError, | 
| 928                   apm->AnalyzeReverseStream(&far_frame)); | 928                   apm->ProcessReverseStream(&far_frame)); | 
| 929 | 929 | 
| 930         if (perf_testing) { | 930         if (perf_testing) { | 
| 931           t1 = TickTime::Now(); | 931           t1 = TickTime::Now(); | 
| 932           TickInterval tick_diff = t1 - t0; | 932           TickInterval tick_diff = t1 - t0; | 
| 933           acc_ticks += tick_diff; | 933           acc_ticks += tick_diff; | 
| 934           if (tick_diff.Microseconds() > max_time_reverse_us) { | 934           if (tick_diff.Microseconds() > max_time_reverse_us) { | 
| 935             max_time_reverse_us = tick_diff.Microseconds(); | 935             max_time_reverse_us = tick_diff.Microseconds(); | 
| 936           } | 936           } | 
| 937           if (tick_diff.Microseconds() < min_time_reverse_us) { | 937           if (tick_diff.Microseconds() < min_time_reverse_us) { | 
| 938             min_time_reverse_us = tick_diff.Microseconds(); | 938             min_time_reverse_us = tick_diff.Microseconds(); | 
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1146 }  // namespace | 1146 }  // namespace | 
| 1147 }  // namespace webrtc | 1147 }  // namespace webrtc | 
| 1148 | 1148 | 
| 1149 int main(int argc, char* argv[]) { | 1149 int main(int argc, char* argv[]) { | 
| 1150   webrtc::void_main(argc, argv); | 1150   webrtc::void_main(argc, argv); | 
| 1151 | 1151 | 
| 1152   // Optional, but removes memory leak noise from Valgrind. | 1152   // Optional, but removes memory leak noise from Valgrind. | 
| 1153   google::protobuf::ShutdownProtobufLibrary(); | 1153   google::protobuf::ShutdownProtobufLibrary(); | 
| 1154   return 0; | 1154   return 0; | 
| 1155 } | 1155 } | 
| OLD | NEW | 
|---|