32 GainMixer(
size_t num_channels,
size_t frames_per_buffer);
40 void AddInput(
const AudioBuffer& input,
const std::vector<float>& gains);
50 const std::vector<float>& gains);
64 struct GainProcessors {
65 explicit GainProcessors(
size_t num_channels);
68 bool processors_active;
71 std::vector<GainProcessor> processors;
79 std::vector<GainProcessor>* GetOrCreateProcessors(SourceId source_id);
82 const size_t num_channels_;
91 std::unordered_map<SourceId, GainProcessors> source_gain_processors_;