shithub: opus

Download patch

ref: 5174817d3627fe740d3903b341dafa7109d44be8
parent: 420231ab1956ba64191ae4b6c46462060048ed52
author: Jean-Marc Valin <[email protected]>
date: Fri Nov 8 14:54:03 EST 2013

Hides OPUS_FRAMESIZE_VARIABLE from the API until it actually works

--- a/celt/celt.h
+++ b/celt/celt.h
@@ -66,6 +66,10 @@
 
 /* Encoder/decoder Requests */
 
+/* Expose this option again when variable framesize actually works */
+#define OPUS_FRAMESIZE_VARIABLE              5010 /**< Optimize the frame size dynamically */
+
+
 #define CELT_SET_PREDICTION_REQUEST    10002
 /** Controls the use of interframe prediction.
     0=Independent frames
--- a/include/opus_defines.h
+++ b/include/opus_defines.h
@@ -206,7 +206,6 @@
 #define OPUS_FRAMESIZE_20_MS                 5004 /**< Use 20 ms frames */
 #define OPUS_FRAMESIZE_40_MS                 5005 /**< Use 40 ms frames */
 #define OPUS_FRAMESIZE_60_MS                 5006 /**< Use 60 ms frames */
-#define OPUS_FRAMESIZE_VARIABLE              5010 /**< Optimize the frame size dynamically */
 
 /**@}*/
 
--- a/tests/test_opus_api.c
+++ b/tests/test_opus_api.c
@@ -1374,7 +1374,7 @@
    if(err!=OPUS_OK)test_failed();
    cfgs++;
    CHECK_SETGET(OPUS_SET_EXPERT_FRAME_DURATION(i),OPUS_GET_EXPERT_FRAME_DURATION(&i),0,-1,
-     OPUS_FRAMESIZE_VARIABLE,OPUS_FRAMESIZE_ARG,
+         OPUS_FRAMESIZE_60_MS,OPUS_FRAMESIZE_ARG,
      "    OPUS_SET_EXPERT_FRAME_DURATION ............... OK.\n",
      "    OPUS_GET_EXPERT_FRAME_DURATION ............... OK.\n")