Add support for 40 and 60 ms frames to AudioEncoderIlbc
BUG=3926 COAUTHOR:kwiberg@webrtc.org R=tina.legrand@webrtc.org Review URL: https://webrtc-codereview.appspot.com/37789004 Cr-Commit-Position: refs/heads/master@{#8182} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8182 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -23,7 +23,9 @@ class AudioEncoderIlbc : public AudioEncoder {
|
||||
Config() : payload_type(102), frame_size_ms(30) {}
|
||||
|
||||
int payload_type;
|
||||
int frame_size_ms;
|
||||
int frame_size_ms; // Valid values are 20, 30, 40, and 60 ms.
|
||||
// Note that frame size 40 ms produces encodings with two 20 ms frames in
|
||||
// them, and frame size 60 ms consists of two 30 ms frames.
|
||||
};
|
||||
|
||||
explicit AudioEncoderIlbc(const Config& config);
|
||||
@ -42,7 +44,7 @@ class AudioEncoderIlbc : public AudioEncoder {
|
||||
EncodedInfo* info) OVERRIDE;
|
||||
|
||||
private:
|
||||
static const int kMaxSamplesPerPacket = 240;
|
||||
static const int kMaxSamplesPerPacket = 480;
|
||||
const int payload_type_;
|
||||
const int num_10ms_frames_per_packet_;
|
||||
int num_10ms_frames_buffered_;
|
||||
|
||||
Reference in New Issue
Block a user