15b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org/* 25b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. 35b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org * 45b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org * Use of this source code is governed by a BSD-style license 55b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org * that can be found in the LICENSE file in the root of the source 65b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org * tree. An additional intellectual property rights grant can be found 75b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org * in the file PATENTS. All contributing project authors may 85b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org * be found in the AUTHORS file in the root of the source tree. 95b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org */ 105b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org 11e5abc854f3dc47de16067c2a41476c39b7626722henrik.lundin@webrtc.org#ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_PERFORMANCE_TEST_H_ 12e5abc854f3dc47de16067c2a41476c39b7626722henrik.lundin@webrtc.org#define WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_PERFORMANCE_TEST_H_ 135b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org 145b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org#include "webrtc/typedefs.h" 155b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org 165b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.orgnamespace webrtc { 175b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.orgnamespace test { 185b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org 195b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.orgclass NetEqPerformanceTest { 205b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org public: 215b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org // Runs a performance test with parameters as follows: 225b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org // |runtime_ms|: the simulation time, i.e., the duration of the audio data. 235b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org // |lossrate|: drop one out of |lossrate| packets, e.g., one out of 10. 245b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org // |drift_factor|: clock drift in [0, 1]. 255b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org // Returns the runtime in ms. 265b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org static int64_t Run(int runtime_ms, int lossrate, double drift_factor); 275b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org}; 285b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org 295b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org} // namespace test 305b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org} // namespace webrtc 315b1467d512340051c8909965cb48c4e55f388c6ahenrik.lundin@webrtc.org 32e5abc854f3dc47de16067c2a41476c39b7626722henrik.lundin@webrtc.org#endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_TOOLS_NETEQ_PERFORMANCE_TEST_H_ 33