Commit Graph

41 Commits

Author SHA1 Message Date
Arthur Taylor
dae19b9502 Rename SF_FORMAT_MP3 to SF_FORMAT_MPEG 2021-03-25 10:26:15 -07:00
Arthur Taylor
663a59aa6e mpeg: Add MPEG Encode, Decode and Tests
Use SF_FORMAT_MP3 major and SF_FORMAT_MPEG_LAYER_(I|II|III) subformats.
2021-03-25 10:26:15 -07:00
bobsayshilol
aa3346cc6e
tests: Make temporary filenames unique per test (#704)
When two tests share a temporary filename they can cause ctest to fail
when run in parallel mode since both would attempt to operate on the
same file if scheduled to run at the same time.

To fix this, filenames in the smaller tests have been individually
renamed, and for the bigger tests a prefix has been added to make them
unique.

The complete list of conflicting filenames (which were then manually
inspected) was generated by running the following command in 'tests':

    for file in $(grep -hoER \"\\w+\\.\\w+\" | sort | uniq -d)
        do echo $file
        grep -Rn $file
        echo
    done | less
2021-02-21 11:11:34 +01:00
Arthur Taylor
326e4533f3 Opus file support
Ogg: Introduce new functions ogg_sync_fseek(), ogg_ftell(), ogg_next_page(),
ogg_stream_next_page(), ogg_sync_last_page_before(), and
ogg_stream_unpack_page(). Use ogg_sync_* for ogg_read_first_page(). Bump libogg
version requirement from 1.1.3 to 1.3.0 as LibOgg 1.3.0 is required for
ogg_stream_pageout_fill() and ogg_stream_flush_fill().

Opus: Add opus support. Document added commands
SFC_(GET|SET)_ORIGINAL_SAMPLERATE. Added or extended tests ogg_opus_test,
compression_size_test, floating_point_test, lossy_comp_test, string_test,
external_libs_test. Change Opus to non-experimental.
2019-02-20 19:30:30 +11:00
evpobr
58737ceb48 tests: Fixes for MSVC
* src/test_main.c: Fix undeclared off_t type with MSVC
* tests/misc_test.c: Fix undefined S_ISCHR & S_ISBLK with MSVC
* tests/stdin_test.c: Fix undefined STDIN_FILENO with MSVC
* tests/win32_ordinal_test.c: Fix undeclared getcwd() with MSVC
* Fix missing unistd.h under Win32

Related: https://github.com/erikd/libsndfile/issues/154
2017-04-14 13:03:27 +10:00
Erik de Castro Lopo
95828ca2e9 Rename EXTERNAL_* to EXTERNAL_XIPH_*`
New naming makes sense because adding Wavpack support would not
depend on any of the existing Xiph.Org libraries.
2016-03-14 08:17:45 +11:00
Erik de Castro Lopo
318ce3de97 RF64: Add string metadata read/write capabilities
Tests included.
2016-01-05 21:06:58 +11:00
Erik de Castro Lopo
b64b37777f Add tests for CAF string metadata read/write 2016-01-03 16:26:54 +11:00
Erik de Castro Lopo
93bdeabf07 Fix a couple of warnings uncovered by the clang compiler. 2013-07-13 18:07:42 +10:00
Erik de Castro Lopo
8868115975 tests/string_test.c : Fix un-initialised char buffer. 2012-03-18 14:33:21 +11:00
Erik de Castro Lopo
9fa6c74223 Whitespace. 2012-03-18 12:06:16 +11:00
Erik de Castro Lopo
dabdc133d0 tests/string_test.c : Fix valgrind warnings. 2012-02-19 22:23:53 +11:00
Erik de Castro Lopo
518e3be6ef tests/ : Fix all printf format warnings. 2012-02-18 12:59:32 +11:00
Erik de Castro Lopo
8508ec5679 More whitespace and cstyle fixes. 2012-01-21 14:24:38 +11:00
Erik de Castro Lopo
2ad57eb9b6 tests/string_test.c : Add tests for extending files in RDWR mode. 2012-01-20 22:46:13 +11:00
Erik de Castro Lopo
9b8d1e0f2f Fix a bunch of compiler warnings with gcc-4.6. 2011-03-28 18:43:05 +11:00
Erik de Castro Lopo
4f143688e7 tests/string_test.c : Add test for SF_STR_SOFTWARE segfault bug. 2011-03-25 19:13:51 +11:00
Erik de Castro Lopo
f209698448 Update copyright dates. 2011-01-19 21:36:56 +11:00
Erik de Castro Lopo
5f5bbb50d4 tests/string_test.c : Add tests for SF_STR_GENRE and SF_STR_TRACKNUMBER. 2010-10-12 20:26:34 +11:00
Erik de Castro Lopo
a38e0b105e Update copyright notices. 2009-02-07 15:20:17 +11:00
Erik de Castro Lopo
e9a1817530 tests/string_test.c : Add test for RDWR mode where the file ends up shorter than when it was opened. 2008-12-14 20:19:44 +11:00
Erik de Castro Lopo
188b96c9c3 Add string tests (not yet working). 2008-08-23 14:02:29 +10:00
Erik de Castro Lopo
f081b9539d tests/string_test.c : Add string tests for WAVEX and RIFX files. 2008-08-18 22:13:53 +10:00
Erik de Castro Lopo
e78ae0b77b tests/string_test.c : Remove definition of static function libsndfile_str_count, which is no longer used. 2008-08-18 09:17:02 +10:00
Erik de Castro Lopo
ee05bdf1b5 tests/string_test.c : Polish string_multi_set_test. 2008-08-18 08:45:43 +10:00
Erik de Castro Lopo
278b206a88 tests/string_test.c : Add a new string_multi_set_test (currently failing). 2008-08-17 18:15:31 +10:00
Erik de Castro Lopo
82f6b2db86 tests/string_test.c : Add a new string_rdwr_test (currently failing for WAV). 2008-08-17 12:06:35 +10:00
Erik de Castro Lopo
a2ce5feb79 Fix tests when configured with --disable-external-libs. 2008-05-21 19:20:24 +10:00
Erik de Castro Lopo
c407bb63af Add string tests for ogg/vorbis. 2007-08-12 09:07:34 +10:00
Erik de Castro Lopo
274bb817e5 Make sure string tests for SF_STR_LICENSE actually works. 2007-07-14 12:38:17 +10:00
Erik de Castro Lopo
3680fe7971 Add string type SF_STR_LICENSE, update test and use for FLAC files. 2007-07-13 22:14:49 +10:00
Erik de Castro Lopo
01527eace7 tests/string_test.c : Add ability to test strings stored in metadata secion of FLAC files. 2007-07-13 20:14:26 +10:00
Erik de Castro Lopo
06ddb6f163 Add string type SF_STR_ALBUM, update test and use for FLAC files. 2007-07-12 19:21:24 +10:00
Erik de Castro Lopo
f3ea80efe5 Fix autoconf config issues using new file sfconfig.h. 2005-09-03 06:12:30 +00:00
Erik de Castro Lopo
b8825e69e3 Update test progs to handle modified test_open_file_or_die().
Patches applied:

 * erikd@miles--2004/libsndfile--weird--1.0--base-0
   tag of erikd@miles--2004/libsndfile--mdev--1.0--patch-300

 * erikd@miles--2004/libsndfile--weird--1.0--patch-1
   Remove old definition of SF_FORMAT_SD2 from common.h.

 * erikd@miles--2004/libsndfile--weird--1.0--patch-2
   Move rsrc filename construction to psf_open_rsrc() and add SFE_SD2_FD_DISALLOWED.
2004-10-28 22:21:40 +00:00
Erik de Castro Lopo
919e5d2a56 Update usage of check_log_buffer_or_die(). 2004-05-21 00:37:31 +00:00
Erik de Castro Lopo
d3dcd4b488 Fix problem when adding an SF_STR_SOFTWARE string. 2004-04-26 02:51:18 +00:00
Erik de Castro Lopo
b27fdfb4d4 Add 2004 copyright dates. 2004-03-01 08:51:25 +00:00
Erik de Castro Lopo
26efcb703f More zip.com.au to mega-nerd.com changes. 2004-02-13 12:31:34 +00:00
Erik de Castro Lopo
a1e9265cad initial import
(automatically generated log message)
2004-01-21 07:46:34 +00:00
Erik de Castro Lopo
cb979e10a7 First snapshot of the public project. 2007-05-14 19:55:24 +10:00