diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-09-20 11:53:40 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-09-20 11:53:40 +0200 |
commit | 808225629721c2f7d5c751edc60e5c6744be7886 (patch) | |
tree | 3d97fc3b7319b5f94e688a454de51b32321ebfd7 /src/opusencoder.h | |
parent | 46d4e577bceb12c9463fdf4ef1d9a9a348f13543 (diff) |
First (crashing) prototype.
Diffstat (limited to 'src/opusencoder.h')
-rw-r--r-- | src/opusencoder.h | 9 |
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__*/ |