Fixing silk fixed point
authorWessel Lubberhuizen <Wessel.Lubberhuizen@gmail.com>
Fri, 20 May 2011 14:41:48 +0000 (10:41 -0400)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Fri, 20 May 2011 14:41:48 +0000 (10:41 -0400)
silk/fixed/silk_structs_FIX.h
silk/silk_control_codec.c

index a479b52..390c383 100644 (file)
@@ -118,7 +118,8 @@ typedef struct {
     silk_encoder_state_FIX          state_Fxx[ ENCODER_NUM_CHANNELS ];\r
     stereo_enc_state                    sStereo;\r
     SKP_int32                           nBitsExceeded;\r
-    SKP_int                             nChannels;\r
+    SKP_int                             nChannelsAPI;\r
+       SKP_int                             nChannelsInternal;\r
     SKP_int                             timeSinceSwitchAllowed_ms;\r
     SKP_int                             allowBandwidthSwitch;\r
 } silk_encoder;\r
index bc8e46e..dde942f 100644 (file)
@@ -25,6 +25,10 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
 ***********************************************************************/\r
 \r
+#ifdef HAVE_CONFIG_H\r
+#include "config.h"\r
+#endif\r
+\r
 #include "silk_tuning_parameters.h"\r
 #ifdef FIXED_POINT\r
 #include "silk_main_FIX.h"\r