mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-02 22:31:57 +00:00
Support for Signal calls.
Merge in RedPhone // FREEBIE
This commit is contained in:
35
jni/redphone/WebRtcJitterBuffer.h
Normal file
35
jni/redphone/WebRtcJitterBuffer.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#ifndef __WEBRTC_JITTER_BUFFER_H__
|
||||
#define __WEBRTC_JITTER_BUFFER_H__
|
||||
|
||||
#include "AudioCodec.h"
|
||||
#include "WebRtcCodec.h"
|
||||
#include "RtpPacket.h"
|
||||
|
||||
#include <android/log.h>
|
||||
#include <pthread.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <modules/audio_coding/neteq/interface/neteq.h>
|
||||
#include <modules/interface/module_common_types.h>
|
||||
|
||||
class WebRtcJitterBuffer {
|
||||
|
||||
private:
|
||||
webrtc::NetEq *neteq;
|
||||
WebRtcCodec webRtcCodec;
|
||||
|
||||
public:
|
||||
WebRtcJitterBuffer(AudioCodec &codec);
|
||||
~WebRtcJitterBuffer();
|
||||
int init();
|
||||
|
||||
void addAudio(RtpPacket *packet, uint32_t tick);
|
||||
int getAudio(short *rawData, int maxRawData);
|
||||
void stop();
|
||||
void collectStats();
|
||||
static void* collectStats(void *context);
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user