Add support of specifying audio sample rate for PC test framework

Bug: webrtc:10138
Change-Id: I6f868ede4b762884d7b2e9e7dac51bc60e9925d0
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/144940
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Tommi <tommi@webrtc.org>
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28513}
This commit is contained in:
Artem Titov
2019-07-08 19:13:21 +02:00
committed by Commit Bot
parent 495a1aee05
commit bc558cebdc
5 changed files with 55 additions and 29 deletions

View File

@ -196,8 +196,11 @@ class PeerConnectionE2EQualityTestFixture {
absl::optional<std::string> input_dump_file_name;
// If specified the output stream will be copied to specified file.
absl::optional<std::string> output_dump_file_name;
// Audio options to use.
cricket::AudioOptions audio_options;
// Sampling frequency of input audio data (from file or generated).
int sampling_frequency_in_hz = 48000;
};
// This class is used to fully configure one peer inside the call.