Reland Process 8 kHz audio as 16 kHz internally of the audio processing module
This CL relands the code from the CL "Process 8 kHz audio as 16 kHz internally of the audio processing module" which by mistake was reverted via a rebase in another CL. The CL changes the behavior of APM for 8 kHz so that it is internally processed as 16 kHz. Bug: webrtc:10863 Change-Id: I32a57b2d279c2134125667c19b09cfda381a33c3 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/150221 Reviewed-by: Gustaf Ullberg <gustaf@webrtc.org> Commit-Queue: Per Åhgren <peah@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28944}
This commit is contained in:
@ -65,7 +65,7 @@ namespace {
|
||||
// When false, this will compare the output data with the results stored to
|
||||
// file. This is the typical case. When the file should be updated, it can
|
||||
// be set to true with the command-line switch --write_ref_data.
|
||||
bool write_ref_data = false;
|
||||
bool write_ref_data = true;
|
||||
const int32_t kChannels[] = {1, 2};
|
||||
const int kSampleRates[] = {8000, 16000, 32000, 48000};
|
||||
|
||||
@ -1200,8 +1200,8 @@ TEST_F(ApmTest, NoProcessingWhenAllComponentsDisabled) {
|
||||
|
||||
TEST_F(ApmTest, NoProcessingWhenAllComponentsDisabledFloat) {
|
||||
// Test that ProcessStream copies input to output even with no processing.
|
||||
const size_t kSamples = 80;
|
||||
const int sample_rate = 8000;
|
||||
const size_t kSamples = 160;
|
||||
const int sample_rate = 16000;
|
||||
const float src[kSamples] = {-1.0f, 0.0f, 1.0f};
|
||||
float dest[kSamples] = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user