Skip to content

Commit

Permalink
Merge pull request #55 from drowe67/dr-vqeq
Browse files Browse the repository at this point in the history
VQ equaliser for Codec 2 700C
  • Loading branch information
drowe67 committed Jul 23, 2019
2 parents 9c4d23d + 66fe723 commit 3568991
Show file tree
Hide file tree
Showing 14 changed files with 294 additions and 995 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -30,6 +30,7 @@ script:
- mkdir -p $BUILDSTD
- cd $BUILDSTD
- cmake $CODEC2DEV
- make -j4
- CTEST_OUTPUT_ON_FAILURE=1 make -j4 all test
- mkdir -p $BUILDSTM
- cd $BUILDSTM
Expand Down
10 changes: 9 additions & 1 deletion CMakeLists.txt
Expand Up @@ -80,7 +80,7 @@ if(NOT WIN32)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
endif()

set(CMAKE_C_FLAGS_DEBUG "-g -O2")
set(CMAKE_C_FLAGS_DEBUG "-g -O2 -DDUMP")
set(CMAKE_C_FLAGS_RELEASE "-O3")

#
Expand Down Expand Up @@ -296,6 +296,14 @@ if(UNITTEST)
include(CTest)
enable_testing()

add_test(NAME test_codec2_700c_octave_port
COMMAND sh -c "cd ${CMAKE_CURRENT_BINARY_DIR}/src;
./c2sim ../../raw/cq_ref.raw --phase0 --postfilter --dump cq_ref --lpc 10 --dump_pitch_e cq_ref_pitche.txt; \
cd ${CMAKE_CURRENT_BINARY_DIR}/unittest; ./tnewamp1 ../../raw/cq_ref.raw; \
cd ${CMAKE_CURRENT_SOURCE_DIR}/octave; \
octave --no-gui -qf run_tnewamp1.m")
set_tests_properties(test_codec2_700c_octave_port PROPERTIES PASS_REGULAR_EXPRESSION "fails: 0")

add_test(NAME test_FDMDV_modem_octave_port
COMMAND sh -c "$<TARGET_FILE:tfdmdv> && octave --no-gui -qf ${CMAKE_CURRENT_SOURCE_DIR}/octave/tfdmdv.m"
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/octave)
Expand Down

0 comments on commit 3568991

Please sign in to comment.