Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: webrtc/modules/audio_processing/audio_processing_impl.h

Issue 1230503003: Update a ton of audio code to use size_t more correctly and in general reduce (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Resync Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 int sample_rate_hz() const override; 73 int sample_rate_hz() const override;
74 int proc_sample_rate_hz() const override; 74 int proc_sample_rate_hz() const override;
75 int proc_split_sample_rate_hz() const override; 75 int proc_split_sample_rate_hz() const override;
76 int num_input_channels() const override; 76 int num_input_channels() const override;
77 int num_output_channels() const override; 77 int num_output_channels() const override;
78 int num_reverse_channels() const override; 78 int num_reverse_channels() const override;
79 void set_output_will_be_muted(bool muted) override; 79 void set_output_will_be_muted(bool muted) override;
80 bool output_will_be_muted() const override; 80 bool output_will_be_muted() const override;
81 int ProcessStream(AudioFrame* frame) override; 81 int ProcessStream(AudioFrame* frame) override;
82 int ProcessStream(const float* const* src, 82 int ProcessStream(const float* const* src,
83 int samples_per_channel, 83 size_t samples_per_channel,
84 int input_sample_rate_hz, 84 int input_sample_rate_hz,
85 ChannelLayout input_layout, 85 ChannelLayout input_layout,
86 int output_sample_rate_hz, 86 int output_sample_rate_hz,
87 ChannelLayout output_layout, 87 ChannelLayout output_layout,
88 float* const* dest) override; 88 float* const* dest) override;
89 int ProcessStream(const float* const* src, 89 int ProcessStream(const float* const* src,
90 const StreamConfig& input_config, 90 const StreamConfig& input_config,
91 const StreamConfig& output_config, 91 const StreamConfig& output_config,
92 float* const* dest) override; 92 float* const* dest) override;
93 int AnalyzeReverseStream(AudioFrame* frame) override; 93 int AnalyzeReverseStream(AudioFrame* frame) override;
94 int ProcessReverseStream(AudioFrame* frame) override; 94 int ProcessReverseStream(AudioFrame* frame) override;
95 int AnalyzeReverseStream(const float* const* data, 95 int AnalyzeReverseStream(const float* const* data,
96 int samples_per_channel, 96 size_t samples_per_channel,
97 int sample_rate_hz, 97 int sample_rate_hz,
98 ChannelLayout layout) override; 98 ChannelLayout layout) override;
99 int ProcessReverseStream(const float* const* src, 99 int ProcessReverseStream(const float* const* src,
100 const StreamConfig& reverse_input_config, 100 const StreamConfig& reverse_input_config,
101 const StreamConfig& reverse_output_config, 101 const StreamConfig& reverse_output_config,
102 float* const* dest) override; 102 float* const* dest) override;
103 int set_stream_delay_ms(int delay) override; 103 int set_stream_delay_ms(int delay) override;
104 int stream_delay_ms() const override; 104 int stream_delay_ms() const override;
105 bool was_stream_delay_set() const override; 105 bool was_stream_delay_set() const override;
106 void set_delay_offset_ms(int offset) override; 106 void set_delay_offset_ms(int offset) override;
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 rtc::scoped_ptr<Beamformer<float>> beamformer_; 205 rtc::scoped_ptr<Beamformer<float>> beamformer_;
206 const std::vector<Point> array_geometry_; 206 const std::vector<Point> array_geometry_;
207 207
208 bool intelligibility_enabled_; 208 bool intelligibility_enabled_;
209 rtc::scoped_ptr<IntelligibilityEnhancer> intelligibility_enhancer_; 209 rtc::scoped_ptr<IntelligibilityEnhancer> intelligibility_enhancer_;
210 }; 210 };
211 211
212 } // namespace webrtc 212 } // namespace webrtc
213 213
214 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ 214 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/audio_buffer.cc ('k') | webrtc/modules/audio_processing/audio_processing_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698