mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-27 03:50:29 +00:00
Add "gsm" as a recognised file extension. Add tests.
This commit is contained in:
parent
0ec53fa7ad
commit
8712204014
@ -1,3 +1,11 @@
|
||||
2005-11-16 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* src/sndfile.c
|
||||
Add "gsm" as a recognised file extension when no magic number can be found.
|
||||
|
||||
* tests/lossy_comp_test.c tests/Makefile.am
|
||||
Test headerless GSM610.
|
||||
|
||||
2005-11-13 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
|
||||
|
||||
* doc/api.html
|
||||
|
@ -2105,6 +2105,9 @@ format_from_extension (const char *filename)
|
||||
if (strcmp (cptr, "vox") == 0)
|
||||
return SF_FORMAT_RAW | SF_FORMAT_VOX_ADPCM ;
|
||||
|
||||
if (strcmp (cptr, "gsm") == 0)
|
||||
return SF_FORMAT_RAW | SF_FORMAT_GSM610 ;
|
||||
|
||||
return 0 ;
|
||||
} /* format_from_extension */
|
||||
|
||||
|
@ -236,6 +236,7 @@ raw-tests: write_read_test lossy_comp_test raw_test
|
||||
./write_read_test raw
|
||||
./lossy_comp_test raw_ulaw
|
||||
./lossy_comp_test raw_alaw
|
||||
./lossy_comp_test raw_gsm610
|
||||
./lossy_comp_test vox_adpcm
|
||||
./raw_test
|
||||
@echo "----------------------------------------------------------------------"
|
||||
|
@ -312,15 +312,14 @@ main (int argc, char *argv [])
|
||||
test_count++ ;
|
||||
} ;
|
||||
|
||||
/*- if (do_all || strcmp (argv [1], "raw_gsm610") == 0)
|
||||
{ /+* Don't do lcomp_test_XXX as the errors are too big. *+/
|
||||
sdlcomp_test_short ("gsm610.raw", SF_FORMAT_RAW | SF_FORMAT_GSM610, 1, 0.24) ;
|
||||
sdlcomp_test_int ("gsm610.raw", SF_FORMAT_RAW | SF_FORMAT_GSM610, 1, 0.24) ;
|
||||
sdlcomp_test_float ("gsm610.raw", SF_FORMAT_RAW | SF_FORMAT_GSM610, 1, 0.24) ;
|
||||
sdlcomp_test_double ("gsm610.raw", SF_FORMAT_RAW | SF_FORMAT_GSM610, 1, 0.24) ;
|
||||
if (do_all || strcmp (argv [1], "raw_gsm610") == 0)
|
||||
{ /* Don't do lcomp_test_XXX as the errors are too big. */
|
||||
sdlcomp_test_short ("raw.gsm", SF_FORMAT_RAW | SF_FORMAT_GSM610, 1, 0.24) ;
|
||||
sdlcomp_test_int ("raw.gsm", SF_FORMAT_RAW | SF_FORMAT_GSM610, 1, 0.24) ;
|
||||
sdlcomp_test_float ("raw.gsm", SF_FORMAT_RAW | SF_FORMAT_GSM610, 1, 0.24) ;
|
||||
sdlcomp_test_double ("raw.gsm", SF_FORMAT_RAW | SF_FORMAT_GSM610, 1, 0.24) ;
|
||||
test_count++ ;
|
||||
} ;
|
||||
-*/
|
||||
|
||||
/* Lite remove start */
|
||||
if (do_all || strcmp (argv [1], "ircam_ulaw") == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user