mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
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:
parent
97ffbefdab
commit
182c2b8334
2 changed files with 4 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue