Working on some stability issues (appears to be solved by making the pitch
projection less aggressive). Also, fixed a 64-bit overflow in the stereo mode
and added a "band rotation" function.
diff --git a/libcelt/modes.c b/libcelt/modes.c
index 36c48de..44b1d60 100644
--- a/libcelt/modes.c
+++ b/libcelt/modes.c
@@ -39,7 +39,7 @@
const int qpulses1[NBANDS128] = {7, 5, 5, 5, 4, 5, 4, 5, 5, 4, -2, 0, 0, 0, 0};
const int qpulses2[NBANDS128] = {28,24,20,16,24,20, 18, 12, 10, 10,-7, -4, 0, 0, 0};
-const int qpulses2b[NBANDS128] = {32,28,24,20,28,24, 22, 18, 16, 15,-12, -12, 12, 12, 0};
+const int qpulses2s[NBANDS128] = {38,30,24,20,24,20, 18, 16, 14, 20,-20,-14, -8, -8, -5};
const int pbank1[PBANDS128+2] = {0, 4, 8, 12, 20, PITCH_END128, 128};
@@ -94,7 +94,7 @@
qpulses2 /**< nbPulses */
};
-/* Stereo mode (doesn't work yet) */
+/* Stereo mode around 120 kbps */
const CELTMode mode4 = {
256, /**< frameSize */
128, /**< mdctSize */
@@ -107,7 +107,7 @@
qbank1, /**< eBands */
pbank1, /**< pBands*/
- qpulses1 /**< nbPulses */
+ qpulses2s /**< nbPulses */
};
const CELTMode const *celt_mode1 = &mode1;