Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/opus_encoder.h')
-rw-r--r--src/opus_encoder.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/opus_encoder.h b/src/opus_encoder.h
index a800a747..5eda2b21 100644
--- a/src/opus_encoder.h
+++ b/src/opus_encoder.h
@@ -33,8 +33,7 @@
#include "SKP_Silk_SDK_API.h"
/* FIXME: This is only valid for 48 kHz */
-#define ENCODER_DELAY_COMPENSATION 130
-#define ENCODER_BUFFER 480
+#define MAX_ENCODER_BUFFER 480
struct OpusEncoder {
CELTEncoder *celt_enc;
@@ -50,8 +49,10 @@ struct OpusEncoder {
int Fs;
int use_vbr;
int bitrate_bps;
+ int encoder_buffer;
+ int delay_compensation;
- short delay_buffer[ENCODER_BUFFER*2];
+ short delay_buffer[MAX_ENCODER_BUFFER*2];
#ifdef OPUS_TEST_RANGE_CODER_STATE
int rangeFinal;