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

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

Issue 2254973003: Added functionality for specifying the initial signal level to use for the gain estimation in the l… (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 4 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 float* const* dest) override; 75 float* const* dest) override;
76 int ProcessStream(const float* const* src, 76 int ProcessStream(const float* const* src,
77 const StreamConfig& input_config, 77 const StreamConfig& input_config,
78 const StreamConfig& output_config, 78 const StreamConfig& output_config,
79 float* const* dest) override; 79 float* const* dest) override;
80 void set_output_will_be_muted(bool muted) override; 80 void set_output_will_be_muted(bool muted) override;
81 int set_stream_delay_ms(int delay) override; 81 int set_stream_delay_ms(int delay) override;
82 void set_delay_offset_ms(int offset) override; 82 void set_delay_offset_ms(int offset) override;
83 int delay_offset_ms() const override; 83 int delay_offset_ms() const override;
84 void set_stream_key_pressed(bool key_pressed) override; 84 void set_stream_key_pressed(bool key_pressed) override;
85 void SetLevelControllerInitialLevel(float level) override;
85 86
86 // Render-side exclusive methods possibly running APM in a 87 // Render-side exclusive methods possibly running APM in a
87 // multi-threaded manner. Acquire the render lock. 88 // multi-threaded manner. Acquire the render lock.
88 int ProcessReverseStream(AudioFrame* frame) override; 89 int ProcessReverseStream(AudioFrame* frame) override;
89 int AnalyzeReverseStream(const float* const* data, 90 int AnalyzeReverseStream(const float* const* data,
90 size_t samples_per_channel, 91 size_t samples_per_channel,
91 int sample_rate_hz, 92 int sample_rate_hz,
92 ChannelLayout layout) override; 93 ChannelLayout layout) override;
93 int ProcessReverseStream(const float* const* src, 94 int ProcessReverseStream(const float* const* src,
94 const StreamConfig& reverse_input_config, 95 const StreamConfig& reverse_input_config,
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 344
344 struct ApmRenderState { 345 struct ApmRenderState {
345 std::unique_ptr<AudioConverter> render_converter; 346 std::unique_ptr<AudioConverter> render_converter;
346 std::unique_ptr<AudioBuffer> render_audio; 347 std::unique_ptr<AudioBuffer> render_audio;
347 } render_ GUARDED_BY(crit_render_); 348 } render_ GUARDED_BY(crit_render_);
348 }; 349 };
349 350
350 } // namespace webrtc 351 } // namespace webrtc
351 352
352 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_ 353 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AUDIO_PROCESSING_IMPL_H_
OLDNEW
« no previous file with comments | « webrtc/media/engine/fakewebrtcvoiceengine.h ('k') | webrtc/modules/audio_processing/audio_processing_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698