mirror of https://github.com/drowe67/LPCNet.git
remove exit() calls from .so
parent
72d21386c6
commit
9bffd903d9
|
|
@ -16,7 +16,6 @@ set(lpcnet_freedv_srcs
|
|||
lpcnet.c
|
||||
lpcnet_freedv.c
|
||||
nnet.c
|
||||
nnet_rw.c
|
||||
${lpcnet_SOURCE_DIR}/nnet_data.c
|
||||
)
|
||||
|
||||
|
|
@ -49,7 +48,7 @@ export(TARGETS lpcnetfreedv
|
|||
add_executable(dump_data dump_data.c)
|
||||
target_link_libraries(dump_data lpcnetfreedv m codec2)
|
||||
|
||||
add_executable(test_lpcnet test_lpcnet.c)
|
||||
add_executable(test_lpcnet test_lpcnet.c nnet_rw.c)
|
||||
target_link_libraries(test_lpcnet lpcnetfreedv m codec2)
|
||||
|
||||
if(SSE OR AVX OR AVX2 OR CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
|
||||
|
|
@ -92,13 +91,13 @@ target_link_libraries(quant_dec lpcnetfreedv m codec2)
|
|||
add_executable(lpcnet_enc lpcnet_enc.c)
|
||||
target_link_libraries(lpcnet_enc lpcnetfreedv m codec2)
|
||||
|
||||
add_executable(lpcnet_dec lpcnet_dec.c)
|
||||
add_executable(lpcnet_dec lpcnet_dec.c nnet_rw.c)
|
||||
target_link_libraries(lpcnet_dec lpcnetfreedv m codec2)
|
||||
|
||||
add_executable(idct idct.c)
|
||||
target_link_libraries(idct lpcnetfreedv m codec2)
|
||||
|
||||
add_executable(nnet2f32 nnet2f32.c)
|
||||
add_executable(nnet2f32 nnet2f32.c nnet_rw.c)
|
||||
target_link_libraries(nnet2f32 lpcnetfreedv m)
|
||||
|
||||
add_executable(sw2packedulaw sw2packedulaw.c)
|
||||
|
|
|
|||
|
|
@ -133,10 +133,7 @@ void lpcnet_destroy(LPCNetState *lpcnet)
|
|||
|
||||
void lpcnet_open_test_file(LPCNetState *lpcnet, char file_name[]) {
|
||||
lpcnet->ftest = fopen(file_name, "wb");
|
||||
if (lpcnet->ftest == NULL) {
|
||||
fprintf(stderr, "Error opening LPCNet test file: %s\n", file_name);
|
||||
exit(1);
|
||||
}
|
||||
assert(lpcnet->ftest != NULL);
|
||||
}
|
||||
|
||||
void lpcnet_set_preemph(LPCNetState *lpcnet, float preemph) {
|
||||
|
|
|
|||
|
|
@ -2,12 +2,13 @@
|
|||
lpcnet_quant.h
|
||||
David Rowe Feb 2019
|
||||
|
||||
David's experimental quanisation functions for LPCNet.
|
||||
David's experimental quantisation functions for LPCNet.
|
||||
*/
|
||||
|
||||
#ifndef __LPCNET_QUANT__
|
||||
#define __LPCNET_QUANT__
|
||||
|
||||
#include <stdio.h>
|
||||
#include "lpcnet_freedv.h"
|
||||
|
||||
#define NB_FEATURES 55 /* length of feature vector (only a subset used) */
|
||||
|
|
@ -15,7 +16,6 @@
|
|||
#define MAX_ENTRIES 4096 /* max number of vectors per stage */
|
||||
#define MAX_STAGES 5 /* max number of VQ stages */
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
typedef struct {
|
||||
float weight; /* weight applied to first cepstral */
|
||||
|
|
|
|||
Loading…
Reference in New Issue