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 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1871 debug_state->event_msg->Clear(); | 1871 debug_state->event_msg->Clear(); |
1872 | 1872 |
1873 return kNoError; | 1873 return kNoError; |
1874 } | 1874 } |
1875 | 1875 |
1876 int AudioProcessingImpl::WriteInitMessage() { | 1876 int AudioProcessingImpl::WriteInitMessage() { |
1877 debug_dump_.capture.event_msg->set_type(audioproc::Event::INIT); | 1877 debug_dump_.capture.event_msg->set_type(audioproc::Event::INIT); |
1878 audioproc::Init* msg = debug_dump_.capture.event_msg->mutable_init(); | 1878 audioproc::Init* msg = debug_dump_.capture.event_msg->mutable_init(); |
1879 msg->set_sample_rate(formats_.api_format.input_stream().sample_rate_hz()); | 1879 msg->set_sample_rate(formats_.api_format.input_stream().sample_rate_hz()); |
1880 | 1880 |
1881 msg->set_num_input_channels(static_cast<google::protobuf::int32>( | 1881 msg->set_num_input_channels(static_cast<int32_t>( |
1882 formats_.api_format.input_stream().num_channels())); | 1882 formats_.api_format.input_stream().num_channels())); |
1883 msg->set_num_output_channels(static_cast<google::protobuf::int32>( | 1883 msg->set_num_output_channels(static_cast<int32_t>( |
1884 formats_.api_format.output_stream().num_channels())); | 1884 formats_.api_format.output_stream().num_channels())); |
1885 msg->set_num_reverse_channels(static_cast<google::protobuf::int32>( | 1885 msg->set_num_reverse_channels(static_cast<int32_t>( |
1886 formats_.api_format.reverse_input_stream().num_channels())); | 1886 formats_.api_format.reverse_input_stream().num_channels())); |
1887 msg->set_reverse_sample_rate( | 1887 msg->set_reverse_sample_rate( |
1888 formats_.api_format.reverse_input_stream().sample_rate_hz()); | 1888 formats_.api_format.reverse_input_stream().sample_rate_hz()); |
1889 msg->set_output_sample_rate( | 1889 msg->set_output_sample_rate( |
1890 formats_.api_format.output_stream().sample_rate_hz()); | 1890 formats_.api_format.output_stream().sample_rate_hz()); |
1891 msg->set_reverse_output_sample_rate( | 1891 msg->set_reverse_output_sample_rate( |
1892 formats_.api_format.reverse_output_stream().sample_rate_hz()); | 1892 formats_.api_format.reverse_output_stream().sample_rate_hz()); |
1893 msg->set_num_reverse_output_channels( | 1893 msg->set_num_reverse_output_channels( |
1894 formats_.api_format.reverse_output_stream().num_channels()); | 1894 formats_.api_format.reverse_output_stream().num_channels()); |
1895 | 1895 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1945 experiments_description += "LevelController;"; | 1945 experiments_description += "LevelController;"; |
1946 } | 1946 } |
1947 if (constants_.agc_clipped_level_min != kClippedLevelMin) { | 1947 if (constants_.agc_clipped_level_min != kClippedLevelMin) { |
1948 experiments_description += "AgcClippingLevelExperiment;"; | 1948 experiments_description += "AgcClippingLevelExperiment;"; |
1949 } | 1949 } |
1950 if (capture_nonlocked_.echo_canceller3_enabled) { | 1950 if (capture_nonlocked_.echo_canceller3_enabled) { |
1951 experiments_description += "EchoCanceller3;"; | 1951 experiments_description += "EchoCanceller3;"; |
1952 } | 1952 } |
1953 config.set_experiments_description(experiments_description); | 1953 config.set_experiments_description(experiments_description); |
1954 | 1954 |
1955 std::string serialized_config = config.SerializeAsString(); | 1955 ProtoString serialized_config = config.SerializeAsString(); |
1956 if (!forced && | 1956 if (!forced && |
1957 debug_dump_.capture.last_serialized_config == serialized_config) { | 1957 debug_dump_.capture.last_serialized_config == serialized_config) { |
1958 return kNoError; | 1958 return kNoError; |
1959 } | 1959 } |
1960 | 1960 |
1961 debug_dump_.capture.last_serialized_config = serialized_config; | 1961 debug_dump_.capture.last_serialized_config = serialized_config; |
1962 | 1962 |
1963 debug_dump_.capture.event_msg->set_type(audioproc::Event::CONFIG); | 1963 debug_dump_.capture.event_msg->set_type(audioproc::Event::CONFIG); |
1964 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config); | 1964 debug_dump_.capture.event_msg->mutable_config()->CopyFrom(config); |
1965 | 1965 |
(...skipping 22 matching lines...) Expand all Loading... |
1988 capture_processing_format(kSampleRate16kHz), | 1988 capture_processing_format(kSampleRate16kHz), |
1989 split_rate(kSampleRate16kHz) {} | 1989 split_rate(kSampleRate16kHz) {} |
1990 | 1990 |
1991 AudioProcessingImpl::ApmCaptureState::~ApmCaptureState() = default; | 1991 AudioProcessingImpl::ApmCaptureState::~ApmCaptureState() = default; |
1992 | 1992 |
1993 AudioProcessingImpl::ApmRenderState::ApmRenderState() = default; | 1993 AudioProcessingImpl::ApmRenderState::ApmRenderState() = default; |
1994 | 1994 |
1995 AudioProcessingImpl::ApmRenderState::~ApmRenderState() = default; | 1995 AudioProcessingImpl::ApmRenderState::~ApmRenderState() = default; |
1996 | 1996 |
1997 } // namespace webrtc | 1997 } // namespace webrtc |
OLD | NEW |