Skip to content

Commit 1af289e

Browse files
committed
cleaned up a little
1 parent db08847 commit 1af289e

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

src/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ set(CODEBOOKSNEWAMP1
4848
${D}/train_120_2.txt
4949
)
5050

51-
set(CODEBOOKSNEWAMP1_SQ
52-
${D}/train_120_1_sq.txt
53-
${D}/train_120_2_sq.txt
54-
)
5551
set(CODEBOOKSNEWAMP1_ENERGY
5652
${D}/newamp1_energy_q.txt
5753
)
@@ -127,13 +123,6 @@ add_custom_command(
127123
DEPENDS generate_codebook ${CODEBOOKSNEWAMP1}
128124
)
129125

130-
# codebooknewamp1_sq.c
131-
add_custom_command(
132-
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/codebooknewamp1_sq.c
133-
COMMAND generate_codebook newamp1vq_cbsq ${CODEBOOKSNEWAMP1_SQ} > ${CMAKE_CURRENT_BINARY_DIR}/codebooknewamp1_sq.c
134-
DEPENDS generate_codebook ${CODEBOOKSNEWAMP1_SQ}
135-
)
136-
137126
# codebooknewamp1_energy.c
138127
add_custom_command(
139128
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/codebooknewamp1_energy.c
@@ -191,7 +180,6 @@ set(CODEC2_SRCS
191180
codebookjvm.c
192181
codebookge.c
193182
codebooknewamp1.c
194-
codebooknewamp1_sq.c
195183
codebooknewamp1_energy.c
196184
codebooknewamp2.c
197185
codebooknewamp2_energy.c

src/defines.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ struct lsp_codebook {
104104
extern const struct lsp_codebook lsp_cb[];
105105
extern const struct lsp_codebook lsp_cbd[];
106106
extern const struct lsp_codebook lsp_cbjvm[];
107-
extern const struct lsp_codebook lspmelvq_cb[];
107+
extern const struct lsp_codebook ge_cb[];
108108
extern const struct lsp_codebook newamp1vq_cb[];
109109
extern const struct lsp_codebook newamp1_energy_cb[];
110110
extern const struct lsp_codebook newamp2vq_cb[];

unittest/tvq_mbest.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ void write_float_file(char fn[], float *values, int n) {
1717
}
1818

1919
int main(void) {
20-
float target[] = {1.0,1,0}; write_float_file("target.f32", target, 2);
20+
float target[] = {1.0,1.0};
21+
write_float_file("target.f32", target, 2);
2122
float vq1[] = {0.9,0.9, /* this will be a better match on first stage */
2223
0.8,0.8}; /* but after second stage should choose this */
2324
write_float_file("vq1.f32", vq1, 4);

0 commit comments

Comments
 (0)