Adding APIs. These APIs are not implemented yet, they are to help developement of ACM.
Un-implemented APIs. TBR=henrik.lundin@webrtc.org BUG= Review URL: https://webrtc-codereview.appspot.com/2191008 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4725 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -65,6 +65,12 @@ enum NetEqPlayoutMode {
|
|||||||
kPlayoutStreaming
|
kPlayoutStreaming
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum NetEqBackgroundNoiseMode {
|
||||||
|
kBgnOn,
|
||||||
|
kBgnFade,
|
||||||
|
kBgnOff
|
||||||
|
};
|
||||||
|
|
||||||
// This is the interface class for NetEq.
|
// This is the interface class for NetEq.
|
||||||
class NetEq {
|
class NetEq {
|
||||||
public:
|
public:
|
||||||
@ -237,6 +243,14 @@ class NetEq {
|
|||||||
// This method is to facilitate NACK.
|
// This method is to facilitate NACK.
|
||||||
virtual int DecodedRtpInfo(int* sequence_number, uint32_t* timestamp) = 0;
|
virtual int DecodedRtpInfo(int* sequence_number, uint32_t* timestamp) = 0;
|
||||||
|
|
||||||
|
// Not implemented.
|
||||||
|
virtual int InsertSyncPacket(const WebRtcRTPHeader& rtp_header,
|
||||||
|
uint32_t receive_timestamp) = 0;
|
||||||
|
|
||||||
|
virtual void SetBackgroundNoiseMode(NetEqBackgroundNoiseMode mode) = 0;
|
||||||
|
|
||||||
|
virtual NetEqBackgroundNoiseMode BackgroundNoiseMode() const = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
NetEq() {}
|
NetEq() {}
|
||||||
|
|
||||||
|
@ -374,6 +374,17 @@ int NetEqImpl::DecodedRtpInfo(int* sequence_number, uint32_t* timestamp) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int NetEqImpl::InsertSyncPacket(const WebRtcRTPHeader& /* rtp_header */,
|
||||||
|
uint32_t /* receive_timestamp */) {
|
||||||
|
return kNotImplemented;
|
||||||
|
}
|
||||||
|
|
||||||
|
void NetEqImpl::SetBackgroundNoiseMode(NetEqBackgroundNoiseMode /* mode */) {}
|
||||||
|
|
||||||
|
NetEqBackgroundNoiseMode NetEqImpl::BackgroundNoiseMode() const {
|
||||||
|
return kBgnOn;
|
||||||
|
}
|
||||||
|
|
||||||
// Methods below this line are private.
|
// Methods below this line are private.
|
||||||
|
|
||||||
|
|
||||||
|
@ -171,6 +171,13 @@ class NetEqImpl : public webrtc::NetEq {
|
|||||||
// This method is to facilitate NACK.
|
// This method is to facilitate NACK.
|
||||||
virtual int DecodedRtpInfo(int* sequence_number, uint32_t* timestamp);
|
virtual int DecodedRtpInfo(int* sequence_number, uint32_t* timestamp);
|
||||||
|
|
||||||
|
virtual int InsertSyncPacket(const WebRtcRTPHeader& rtp_header,
|
||||||
|
uint32_t receive_timestamp);
|
||||||
|
|
||||||
|
virtual void SetBackgroundNoiseMode(NetEqBackgroundNoiseMode mode);
|
||||||
|
|
||||||
|
virtual NetEqBackgroundNoiseMode BackgroundNoiseMode() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const int kOutputSizeMs = 10;
|
static const int kOutputSizeMs = 10;
|
||||||
static const int kMaxFrameSize = 2880; // 60 ms @ 48 kHz.
|
static const int kMaxFrameSize = 2880; // 60 ms @ 48 kHz.
|
||||||
|
Reference in New Issue
Block a user