Derek Gasaway
2c2d9a8eb2
Remove unused internal headers from examples.
2017-10-02 10:26:32 +11:00
David Seifert
e6c42ff027
Make build system completely non-recursive
2017-09-26 19:35:56 +10:00
Matthieu Poullet
e6d68161d1
make_sine.c: small code cleanup.
...
make_sine.c: fix typo in output message.
make_sine.c: use return instead of exit in main.
make_sine.c: unify error messages.
make_sine.c: return error code if malloc fails.
make_sine.c: free memory and close file handle in error case.
2017-05-19 21:42:59 +10:00
David Seifert
e57927bea8
Compile tests only when running 'make check'
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2017-01-28 21:16:21 +11:00
IOhannes m zmölnig
f9a3fab6aa
examples/sndfile-to-text: added '--full-precision' flag
...
Specifying this flag will store the samples in full precision
(so they can be losslessly restored from the text-file).
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Closes: https://github.com/erikd/libsndfile/pull/186
2016-10-13 19:44:46 +11:00
Erik de Castro Lopo
ba352a1ce7
Remove all use of Variable Length Arrays
...
VLAs are somewhat unsound and are being made an optional part of ISO
C specification.
2016-09-03 18:11:56 +10:00
Erik de Castro Lopo
2ec38064dd
Add examples/sndfile-loopify.c
2015-10-26 09:24:14 +11:00
Daniel Winzen
cd838a022e
Fix memory leaks
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Closes: https://github.com/erikd/libsndfile/pull/100
2015-08-07 20:19:24 +10:00
Erik de Castro Lopo
c1a09a5065
programs/*.c : Clean up and normailize printing of version strings.
...
Suggested-by: Jan Stary <hans@stare.cz>
2014-06-23 17:17:51 +10:00
Erik de Castro Lopo
96bfd88297
Add *.exe CLEANFILES in Makefile.am.
2013-06-23 21:33:37 +10:00
Karl Lindén
958263fbd7
Do not use old variable INCLUDES and use modern AM_INIT_AUTOMAKE invocation.
...
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-04-07 20:05:08 +10:00
Erik de Castro Lopo
1ad2dec20c
examples/sfprocess.c : Add missing #include.
2013-02-08 06:44:26 +11:00
Ulrich Klauer
23c926d633
Properly initialize SF_INFO in example programs
...
Some of the example programs (examples/generate.c,
examples/sfprocess.c, examples/sndfile-to-text.c) didn't initialize
the SF_INFO structure to zero before using it, leading to undefined
behaviour. Add a memset() to fix this.
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2013-02-07 18:13:53 +11:00
Erik de Castro Lopo
8508ec5679
More whitespace and cstyle fixes.
2012-01-21 14:24:38 +11:00
Erik de Castro Lopo
18c1105981
Whitespace and cstyle fixes.
2012-01-20 22:46:13 +11:00
Erik de Castro Lopo
f209698448
Update copyright dates.
2011-01-19 21:36:56 +11:00
Erik de Castro Lopo
12a46a4785
Bunch of minor fixes.
2009-03-24 19:58:48 +11:00
Erik de Castro Lopo
a38e0b105e
Update copyright notices.
2009-02-07 15:20:17 +11:00
Erik de Castro Lopo
50112e2bb7
Move real utility programs from examples/ to new directory programs/ .
2008-10-21 22:49:55 +11:00
Erik de Castro Lopo
6d7eac5e45
Add a new exmaple program (sndfile-to-text.c) and hook it into the build.
2008-10-21 22:26:29 +11:00
Erik de Castro Lopo
0029bfcf37
examples/sndfile-play.c : Remove call to deprecated function snd_pcm_sw_params_get_xfer_align. Fix gcc-4.3 compiler warnings.
2008-10-19 09:55:00 +11:00
Erik de Castro Lopo
06ed18b279
examples/common.c : Fix copying of BROADCAST_INFO coding_history field.
2008-10-17 18:43:53 +11:00
Erik de Castro Lopo
019dbf5056
Merge from -mdev branch.
2008-10-14 09:24:33 +11:00
Erik de Castro Lopo
8373e33d9f
examples/common.c : Add extra length check when copying broadcast info data.
2008-10-08 21:32:15 +11:00
Erik de Castro Lopo
5835456f59
examples/test-sndfile-metadata-set.py : Start work on test coding history.
2008-10-01 20:59:30 +10:00
Erik de Castro Lopo
65f0d981e6
examples/sndfile-metadata-(get|set).c : Add usage messages.
2008-10-01 20:57:15 +10:00
Erik de Castro Lopo
e0d92fd712
examples/sndfile-metadata-set.c : Remove --bext-coding-history-append command line option because it didn't really make sense.
2008-10-01 17:19:05 +10:00
Erik de Castro Lopo
f6ed5755a1
examples/sndfile-play.c : Fix win64 issues.
2008-09-29 18:01:34 +10:00
Erik de Castro Lopo
8ed24c2c70
*/Makefile.am : Clean paths.
2008-09-25 21:46:49 +10:00
Erik de Castro Lopo
e0269db6fa
examples/sndfile-convert.c : Fix compile.
2008-09-25 21:24:26 +10:00
Erik de Castro Lopo
3928286520
examples : Move code from sndfile-metadata-set.c to common.c.
2008-09-25 20:28:40 +10:00
Erik de Castro Lopo
d5b1bfe843
examples/* : Rename copy_data.[ch] to common.[ch]. Fix build.
2008-09-25 20:19:03 +10:00
Erik de Castro Lopo
7eef4ad4f8
examples/test-sndfile-metadata-set.py : Update test to use --str-title instead of -str-name.
2008-09-14 18:01:00 +10:00
Erik de Castro Lopo
ba4fe7ae2c
examples/sndfile-metadata-set.c : Clean up handling of bext command line params.
2008-09-14 18:00:23 +10:00
Erik de Castro Lopo
e95d2a9faa
examples/sndfile-metadata-(get|set).c : Add handling for more metadata types.
2008-09-09 21:12:59 +10:00
Erik de Castro Lopo
d12d93f7be
Merge from -mdev.
2008-09-04 09:44:38 +10:00
Erik de Castro Lopo
5967cf587c
examples/sndfile-metadata-set.c : Massive reworking.
2008-09-03 20:32:01 +10:00
Erik de Castro Lopo
b301e43a24
examples/*-metadata-* : Change command line args.
2008-08-25 20:04:11 +10:00
Erik de Castro Lopo
c3e9c10119
Tweaks.
2008-08-24 20:34:02 +10:00
Erik de Castro Lopo
2c4dd4a8e7
Rename sndfile-bwf-(set|get).c to sndfile-metadata-(set|get).c.
2008-08-24 19:38:18 +10:00
Erik de Castro Lopo
edbc326a0b
examples/sndfile-bwf-set.c : Add --info-auto-create-date command line option.
2008-08-24 19:12:17 +10:00
Erik de Castro Lopo
6c17115ca0
Merge from -mdev branch.
2008-08-23 10:11:40 +10:00
Erik de Castro Lopo
1e013c0faa
examples/sndfile-convert.c : Add SF_FORMAT_RF64 to format_map.
2008-08-21 17:26:36 +10:00
Erik de Castro Lopo
d939e1a372
examples/sndfile-info.c : When called with -i or -b option, operate on all files on command line, not just the first.
2008-08-21 16:57:27 +10:00
Erik de Castro Lopo
ee05833a00
examples/test-sndfile-bwf-set.py : Update tests.
2008-08-21 14:19:24 +10:00
Erik de Castro Lopo
44fdbd82ed
examples/sndfile-bwf-set.c : Fix the month number in autogenerated date. Use hypen in date instead of slash.
2008-08-21 09:18:20 +10:00
Erik de Castro Lopo
f7bfbde937
examples/sndfile-info.c : Clean up output.
2008-08-20 13:14:20 +10:00
Erik de Castro Lopo
c6abe66655
examples/sndfile-info.c : Only calculate and print 'Signal Max' if file is less than 10 megabytes in length.
2008-08-19 14:06:58 +10:00
Erik de Castro Lopo
fa5a4eb7ca
examples/Makefile.am : Add file test-sndfile-bwf-set.py to EXTRA_DIST.
2008-08-18 22:23:10 +10:00
Erik de Castro Lopo
34d3364a2e
examples/test-sndfile-bwf-set.py : Improve printing of test name.
2008-08-18 10:18:37 +10:00