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

Side by Side Diff: webrtc/modules/audio_mixer/source/new_audio_conference_mixer_impl.h

Issue 2221443002: Changed mixing api and removed resampler (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added public headers to BUILD.gn Created 4 years, 4 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // Must be called after ctor. 68 // Must be called after ctor.
69 bool Init(); 69 bool Init();
70 70
71 // NewAudioConferenceMixer functions 71 // NewAudioConferenceMixer functions
72 int32_t SetMixabilityStatus(MixerAudioSource* audio_source, 72 int32_t SetMixabilityStatus(MixerAudioSource* audio_source,
73 bool mixable) override; 73 bool mixable) override;
74 bool MixabilityStatus(const MixerAudioSource& audio_source) const override; 74 bool MixabilityStatus(const MixerAudioSource& audio_source) const override;
75 int32_t SetAnonymousMixabilityStatus(MixerAudioSource* audio_source, 75 int32_t SetAnonymousMixabilityStatus(MixerAudioSource* audio_source,
76 bool mixable) override; 76 bool mixable) override;
77 void Mix(AudioFrame* audio_frame_for_mixing) override; 77 void Mix(int sample_rate,
78 size_t number_of_channels,
79 AudioFrame* audio_frame_for_mixing) override;
78 int32_t SetMinimumMixingFrequency(Frequency freq) override; 80 int32_t SetMinimumMixingFrequency(Frequency freq) override;
79 bool AnonymousMixabilityStatus( 81 bool AnonymousMixabilityStatus(
80 const MixerAudioSource& audio_source) const override; 82 const MixerAudioSource& audio_source) const override;
81 83
82 private: 84 private:
83 // Set/get mix frequency 85 // Set/get mix frequency
84 int32_t SetOutputFrequency(const Frequency& frequency); 86 int32_t SetOutputFrequency(const Frequency& frequency);
85 Frequency OutputFrequency() const; 87 Frequency OutputFrequency() const;
86 88
87 // Compute what audio sources to mix from audio_source_list_. Ramp in 89 // Compute what audio sources to mix from audio_source_list_. Ramp in
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 155
154 // Ensures that Mix is called from the same thread. 156 // Ensures that Mix is called from the same thread.
155 rtc::ThreadChecker thread_checker_; 157 rtc::ThreadChecker thread_checker_;
156 158
157 // Used for inhibiting saturation in mixing. 159 // Used for inhibiting saturation in mixing.
158 std::unique_ptr<AudioProcessing> _limiter; 160 std::unique_ptr<AudioProcessing> _limiter;
159 }; 161 };
160 } // namespace webrtc 162 } // namespace webrtc
161 163
162 #endif // WEBRTC_MODULES_AUDIO_MIXER_SOURCE_NEW_AUDIO_CONFERENCE_MIXER_IMPL_H_ 164 #endif // WEBRTC_MODULES_AUDIO_MIXER_SOURCE_NEW_AUDIO_CONFERENCE_MIXER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698