summaryrefslogtreecommitdiff
path: root/src/opusencoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/opusencoder.h')
-rw-r--r--src/opusencoder.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/opusencoder.h b/src/opusencoder.h
index b0e16fd..9aeaf3a 100644
--- a/src/opusencoder.h
+++ b/src/opusencoder.h
@@ -27,13 +27,14 @@
#ifndef __SIMPLERTP_OPUS_ENCODER_H__
#define __SIMPLERTP_OPUS_ENCODER_H__
+#include <opus/opus.h>
+
#include "frame.h"
+#include "samplecache.h"
// Frame size 10ms
#define OPUS_FRAME_SIZE 10
-struct opus_encoder_private_t;
-
class OpusEncoder {
public:
OpusEncoder();
@@ -41,11 +42,11 @@ public:
framelist_t encode(const char *pcm, size_t size);
- samplerate_t opus_samplerate();
unsigned int framesize();
private:
- struct opus_encoder_private_t *prv;
+ struct OpusEncoder *encoder;
+ SampleCache cache;
};
#endif/*__SIMPLERTP_OPUS_ENCODER_H__*/