Expose run function to NetEqSimulator

Bug: webrtc:11005
Change-Id: I84f01536b40ba17e66877cdced194e05b882b5c5
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/167537
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Commit-Queue: Ivo Creusen <ivoc@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#30405}
This commit is contained in:
Ivo Creusen 2020-01-28 17:12:23 +01:00 committed by Commit Bot
parent 97ffbefdab
commit 182c2b8334
2 changed files with 4 additions and 1 deletions

View file

@ -60,6 +60,9 @@ class NetEqSimulator {
int packet_size_ms = 0;
};
// Runs the simulation until the end. Returns the duration of the produced
// audio in ms.
virtual int64_t Run() = 0;
// Runs the simulation until we hit the next GetAudio event. If the simulation
// is finished, is_simulation_finished will be set to true in the returned
// SimulationStepResult.

View file

@ -92,7 +92,7 @@ class NetEqTest : public NetEqSimulator {
~NetEqTest() override;
// Runs the test. Returns the duration of the produced audio in ms.
int64_t Run();
int64_t Run() override;
// Runs the simulation until we hit the next GetAudio event. If the simulation
// is finished, is_simulation_finished will be set to true in the returned
// SimulationStepResult.