diff options
author | Camille Gonnet <camille@sound4.biz> | 2021-10-01 08:35:58 +0200 |
---|---|---|
committer | Filipe Coelho <falktx@falktx.com> | 2021-10-01 12:37:24 +0100 |
commit | 0727bbc386288f6ff5cb6876d2321836d562221e (patch) | |
tree | fa85387f326bffd98404356adb8a4dc6e35d7786 /example-clients | |
parent | 596b140d6738901020ff1fc38889753ac6f0e52f (diff) | |
download | jack2-0727bbc386288f6ff5cb6876d2321836d562221e.tar.gz |
ALSA: convert properly S24_LE
Diffstat (limited to 'example-clients')
-rw-r--r-- | example-clients/simdtests.cpp | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/example-clients/simdtests.cpp b/example-clients/simdtests.cpp index dc50be62..40b30e90 100644 --- a/example-clients/simdtests.cpp +++ b/example-clients/simdtests.cpp @@ -119,6 +119,26 @@ test_case_data_t test_cases[] = { NULL, "32u24" }, { + 4, + 3, + true, + accelerated::sample_move_d32l24_sSs, + origerated::sample_move_d32l24_sSs, + accelerated::sample_move_dS_s32l24s, + origerated::sample_move_dS_s32l24s, + NULL, + "32l24s" }, + { + 4, + 3, + false, + accelerated::sample_move_d32l24_sS, + origerated::sample_move_d32l24_sS, + accelerated::sample_move_dS_s32l24, + origerated::sample_move_dS_s32l24, + NULL, + "32l24" }, + { 3, 3, true, @@ -283,7 +303,8 @@ int main(int argc, char *argv[]) #else test_cases[testcase].reverse); #endif - if(intval_accel != intval_orig) { + // allow a deviation of 1 + if(intval_accel>intval_orig+1 || intval_orig>intval_accel+1) { if(int_error_count<maxerr_displayed) { printf("Value error sample %u:", sample); printf(" Orig 0x"); |