Adds back set_sample_rate_hz() when Init is called in recordings.
Recordings that had a AnalyzeReverseStream() call prior to ProcessStream() where aborted due to sample rates being set upon call by ProcessStream(). That change was done in r5346. Before we have a smarter handling on how to set sample rate automatically, this CL adds back that setting. BUG= TESTED=trybots, modules_unittests R=andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/7189004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5394 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
parent
ea9392d5eb
commit
6a94734d4d
@ -627,6 +627,9 @@ void void_main(int argc, char* argv[]) {
|
||||
const Init msg = event_msg.init();
|
||||
|
||||
ASSERT_TRUE(msg.has_sample_rate());
|
||||
// TODO(bjornv): Replace set_sample_rate_hz() when we have a smarter
|
||||
// AnalyzeReverseStream().
|
||||
ASSERT_EQ(apm->kNoError, apm->set_sample_rate_hz(msg.sample_rate()));
|
||||
ASSERT_TRUE(msg.has_device_sample_rate());
|
||||
ASSERT_EQ(apm->kNoError,
|
||||
apm->echo_cancellation()->set_device_sample_rate_hz(
|
||||
@ -814,6 +817,10 @@ void void_main(int argc, char* argv[]) {
|
||||
1,
|
||||
event_file));
|
||||
|
||||
// TODO(bjornv): Replace set_sample_rate_hz() when we have a smarter
|
||||
// AnalyzeReverseStream().
|
||||
ASSERT_EQ(apm->kNoError, apm->set_sample_rate_hz(sample_rate_hz));
|
||||
|
||||
ASSERT_EQ(apm->kNoError,
|
||||
apm->echo_cancellation()->set_device_sample_rate_hz(
|
||||
device_sample_rate_hz));
|
||||
|
Loading…
x
Reference in New Issue
Block a user