Adding a delay line to NetEq's output
This change adds an optional delay to NetEq's output. Note, this is not equivalent to increasing the jitter buffer with the same extra length. Bug: b/156734419 Change-Id: I8b70b6b3bffcfd3da296ccf29853864baa03d6bb Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/175110 Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Ivo Creusen <ivoc@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31343}
This commit is contained in:
committed by
Commit Bot
parent
848ea9f0d3
commit
c49e9c253f
@ -33,7 +33,8 @@ NetEqStatsPlotter::NetEqStatsPlotter(bool make_matlab_plot,
|
||||
stats_getter_.reset(new NetEqStatsGetter(std::move(delay_analyzer)));
|
||||
}
|
||||
|
||||
void NetEqStatsPlotter::SimulationEnded(int64_t simulation_time_ms) {
|
||||
void NetEqStatsPlotter::SimulationEnded(int64_t simulation_time_ms,
|
||||
NetEq* /*neteq*/) {
|
||||
if (make_matlab_plot_) {
|
||||
auto matlab_script_name = base_file_name_;
|
||||
std::replace(matlab_script_name.begin(), matlab_script_name.end(), '.',
|
||||
|
||||
@ -28,7 +28,7 @@ class NetEqStatsPlotter : public NetEqSimulationEndedCallback {
|
||||
bool show_concealment_events,
|
||||
std::string base_file_name);
|
||||
|
||||
void SimulationEnded(int64_t simulation_time_ms) override;
|
||||
void SimulationEnded(int64_t simulation_time_ms, NetEq* neteq) override;
|
||||
|
||||
NetEqStatsGetter* stats_getter() { return stats_getter_.get(); }
|
||||
|
||||
|
||||
@ -91,7 +91,8 @@ int64_t NetEqTest::Run() {
|
||||
simulation_time += step_result.simulation_step_ms;
|
||||
} while (!step_result.is_simulation_finished);
|
||||
if (callbacks_.simulation_ended_callback) {
|
||||
callbacks_.simulation_ended_callback->SimulationEnded(simulation_time);
|
||||
callbacks_.simulation_ended_callback->SimulationEnded(simulation_time,
|
||||
neteq_.get());
|
||||
}
|
||||
return simulation_time;
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ class NetEqGetAudioCallback {
|
||||
class NetEqSimulationEndedCallback {
|
||||
public:
|
||||
virtual ~NetEqSimulationEndedCallback() = default;
|
||||
virtual void SimulationEnded(int64_t simulation_time_ms) = 0;
|
||||
virtual void SimulationEnded(int64_t simulation_time_ms, NetEq* neteq) = 0;
|
||||
};
|
||||
|
||||
// Class that provides an input--output test for NetEq. The input (both packets
|
||||
|
||||
Reference in New Issue
Block a user