Skip to content

Commit 182c2b8

Browse files
Ivo CreusenCommit Bot
Ivo Creusen
authored and
Commit Bot
committed
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}
1 parent 97ffbef commit 182c2b8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

api/test/neteq_simulator.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ class NetEqSimulator {
6060
int packet_size_ms = 0;
6161
};
6262

63+
// Runs the simulation until the end. Returns the duration of the produced
64+
// audio in ms.
65+
virtual int64_t Run() = 0;
6366
// Runs the simulation until we hit the next GetAudio event. If the simulation
6467
// is finished, is_simulation_finished will be set to true in the returned
6568
// SimulationStepResult.

modules/audio_coding/neteq/tools/neteq_test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class NetEqTest : public NetEqSimulator {
9292
~NetEqTest() override;
9393

9494
// Runs the test. Returns the duration of the produced audio in ms.
95-
int64_t Run();
95+
int64_t Run() override;
9696
// Runs the simulation until we hit the next GetAudio event. If the simulation
9797
// is finished, is_simulation_finished will be set to true in the returned
9898
// SimulationStepResult.

0 commit comments

Comments
 (0)