Skip to content

Commit 24c09ae

Browse files
authored
Fix voice ap for Raspberry Pi (#100)
Make dynwin member of cst_db `const float *` (it is always used as this type) This seems to fix the voice *ap* for raspberry pi (but I don't know why)
1 parent 308b83a commit 24c09ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/cst_cg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ typedef struct cst_cg_db_struct {
9999

100100
/* Other parameters */
101101
int32_t do_mlpg; /* implies deltas are in the model_vectors */
102-
float *dynwin;
102+
const float *dynwin;
103103
int32_t dynwinsize;
104104

105105
float mlsa_alpha;

lang/vid_gb_ap/vid_gb_ap_cg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ const float vid_gb_ap_model_range[] = {
542542
10.000000,
543543
5.163980,
544544
};
545-
float vid_gb_ap_dynwin[] = { -0.5, 0.0, 0.5 };
545+
const float vid_gb_ap_dynwin[] = { -0.5, 0.0, 0.5 };
546546
#define vid_gb_ap_dynwinsize 3
547547
const double vid_gb_ap_me_filter_0[] = {
548548
0.000000, 0.000007, 0.000026, 0.000049, 0.000065, 0.000062, 0.000028, -0.000052, -0.000189, -0.000393, -0.000670, -0.001020, -0.001439, -0.001914, -0.002426, -0.002948, -0.003448, -0.003883, -0.004211, -0.004381, -0.004344, -0.004051, -0.003453, -0.002511, -0.001190, 0.000535, 0.002674, 0.005227, 0.008178, 0.011497, 0.015138, 0.019040, 0.023132, 0.027330, 0.031542, 0.035670, 0.039614, 0.043274, 0.046556, 0.049373, 0.051649, 0.053321, 0.054344, 0.054688, 0.054344, 0.053321, 0.051649

0 commit comments

Comments
 (0)