Replacing the legacy tool RTPencode with a new rtp_encode

This new tool provides the same functionality as the legacy tool, but it
is implemented using AudioCodingModule and AudioEncoder APIs instead of
the naked codecs.

Bug: webrtc:2692
Change-Id: I29accd77d4ba5c7b5e1559853cbaf20ee812e6bc
Reviewed-on: https://webrtc-review.googlesource.com/24861
Commit-Queue: Henrik Lundin <henrik.lundin@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#20857}
This commit is contained in:
Henrik Lundin
2017-11-24 09:28:57 +01:00
committed by Commit Bot
parent bb5ca2ef41
commit 1391bd472c
6 changed files with 383 additions and 1887 deletions

View File

@ -24,7 +24,7 @@ namespace test {
// Class for handling a looping input audio file.
class InputAudioFile {
public:
explicit InputAudioFile(const std::string file_name);
explicit InputAudioFile(const std::string file_name, bool loop_at_end = true);
virtual ~InputAudioFile();
@ -50,6 +50,7 @@ class InputAudioFile {
private:
FILE* fp_;
const bool loop_at_end_;
RTC_DISALLOW_COPY_AND_ASSIGN(InputAudioFile);
};