Allow more than 2 input channels in AudioProcessing.
The number of output channels is constrained to be equal to either 1 or the number of input channels. R=aluebs@webrtc.org, andrew@webrtc.org, pbos@webrtc.org Review URL: https://codereview.webrtc.org/1226093007 . Cr-Commit-Position: refs/heads/master@{#9619}
This commit is contained in:
@ -186,6 +186,8 @@ class MockAudioProcessing : public AudioProcessing {
|
||||
ChannelLayout input_layout,
|
||||
ChannelLayout output_layout,
|
||||
ChannelLayout reverse_layout));
|
||||
MOCK_METHOD1(Initialize,
|
||||
int(const ProcessingConfig& processing_config));
|
||||
MOCK_METHOD1(SetExtraOptions,
|
||||
void(const Config& config));
|
||||
MOCK_METHOD1(set_sample_rate_hz,
|
||||
@ -218,11 +220,18 @@ class MockAudioProcessing : public AudioProcessing {
|
||||
int output_sample_rate_hz,
|
||||
ChannelLayout output_layout,
|
||||
float* const* dest));
|
||||
MOCK_METHOD4(ProcessStream,
|
||||
int(const float* const* src,
|
||||
const StreamConfig& input_config,
|
||||
const StreamConfig& output_config,
|
||||
float* const* dest));
|
||||
MOCK_METHOD1(AnalyzeReverseStream,
|
||||
int(AudioFrame* frame));
|
||||
MOCK_METHOD4(AnalyzeReverseStream,
|
||||
int(const float* const* data, int frames, int sample_rate_hz,
|
||||
ChannelLayout input_layout));
|
||||
MOCK_METHOD2(AnalyzeReverseStream,
|
||||
int(const float* const* data, const StreamConfig& reverse_config));
|
||||
MOCK_METHOD1(set_stream_delay_ms,
|
||||
int(int delay));
|
||||
MOCK_CONST_METHOD0(stream_delay_ms,
|
||||
|
Reference in New Issue
Block a user