mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-26 19:40:24 +00:00
Clean out cruft.
This commit is contained in:
parent
adc85e91de
commit
2e97a51cdd
@ -50,10 +50,3 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
# Do not edit or modify anything in this comment block.
|
|
||||||
# The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
# revision control system.
|
|
||||||
#
|
|
||||||
# arch-tag: 9d7ed7ce-41fe-4efe-8bde-f5fc6f46bb03
|
|
||||||
|
|
||||||
|
@ -57,10 +57,3 @@ if (status),
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
# Do not edit or modify anything in this comment block.
|
|
||||||
# The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
# revision control system.
|
|
||||||
#
|
|
||||||
# arch-tag: 96fb14c8-2b5a-4b93-a576-ab83a6d9026b
|
|
||||||
|
|
||||||
|
@ -51,10 +51,3 @@ str = sprintf ("save -mat-binary %s samplerate wavedata", filename) ;
|
|||||||
eval (str) ;
|
eval (str) ;
|
||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
# Do not edit or modify anything in this comment block.
|
|
||||||
# The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
# revision control system.
|
|
||||||
#
|
|
||||||
# arch-tag: 5e44602b-940b-4927-af7c-47639769a40b
|
|
||||||
|
|
||||||
|
@ -2,9 +2,3 @@
|
|||||||
|
|
||||||
EXTRA_DIST = README-precompiled-dll.txt testprog.c
|
EXTRA_DIST = README-precompiled-dll.txt testprog.c
|
||||||
|
|
||||||
## Do not edit or modify anything in this comment block.
|
|
||||||
## The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
## revision control system.
|
|
||||||
##
|
|
||||||
## arch-tag: c28c7540-67f6-47e7-8035-0abbc6a174bc
|
|
||||||
|
|
||||||
|
@ -394,8 +394,3 @@ tests/benchmark.exe : tests/benchmark.o libsndfile.lib
|
|||||||
|
|
||||||
# End of Makefile
|
# End of Makefile
|
||||||
#====================================================================
|
#====================================================================
|
||||||
# Do not edit or modify anything in this comment block.
|
|
||||||
# The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
# revision control system.
|
|
||||||
#
|
|
||||||
# arch-tag: a588878f-6796-4a47-bbef-83a3aaac0983
|
|
||||||
|
@ -569,9 +569,3 @@ CHECK: $(TEST_PROGS)
|
|||||||
# End of Makefile
|
# End of Makefile
|
||||||
#====================================================================
|
#====================================================================
|
||||||
|
|
||||||
# Do not edit or modify anything in this comment block.
|
|
||||||
# The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
# revision control system.
|
|
||||||
#
|
|
||||||
# arch-tag: 9a46d08e-921f-49f7-961e-3f21ea67851e
|
|
||||||
|
|
||||||
|
@ -279,12 +279,3 @@
|
|||||||
|
|
||||||
/* Define for large files, on AIX-style hosts. */
|
/* Define for large files, on AIX-style hosts. */
|
||||||
/* #undef _LARGE_FILES */
|
/* #undef _LARGE_FILES */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 78a733c0-a430-46bd-81ab-4e479fbcffac
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
@ -7266,8 +7266,3 @@ include_expsyms=""
|
|||||||
|
|
||||||
# ### END LIBTOOL TAG CONFIG: F77
|
# ### END LIBTOOL TAG CONFIG: F77
|
||||||
|
|
||||||
# Do not edit or modify anything in this comment block.
|
|
||||||
# The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
# revision control system.
|
|
||||||
#
|
|
||||||
# arch-tag: f284401a-dcf1-41ea-97ea-c51edee14a27
|
|
||||||
|
@ -528,12 +528,3 @@ void sf_write_sync (SNDFILE *sndfile) ;
|
|||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
#endif /* SNDFILE_H */
|
#endif /* SNDFILE_H */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 906bb197-18f2-4f66-a395-b4722bab5114
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
@ -14,11 +14,3 @@ main (void)
|
|||||||
return 0 ;
|
return 0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The following line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 31165fd8-9d91-4e5d-8b31-8efd42ef7645
|
|
||||||
*/
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
g#!/usr/bin/python
|
||||||
|
|
||||||
import re, string, sys
|
import re, string, sys
|
||||||
|
|
||||||
@ -60,10 +60,3 @@ if len (sys.argv) < 2:
|
|||||||
for file in sys.argv [1:]:
|
for file in sys.argv [1:]:
|
||||||
search_for_problems (file)
|
search_for_problems (file)
|
||||||
|
|
||||||
|
|
||||||
# Do not edit or modify anything in this comment block.
|
|
||||||
# The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
# revision control system.
|
|
||||||
#
|
|
||||||
# arch-tag: 64d2d700-a787-4843-a342-2bafd0761645
|
|
||||||
|
|
||||||
|
@ -8,9 +8,3 @@ html_DATA = index.html libsndfile.jpg libsndfile.css api.html command.html \
|
|||||||
|
|
||||||
EXTRA_DIST = $(html_DATA)
|
EXTRA_DIST = $(html_DATA)
|
||||||
|
|
||||||
## Do not edit or modify anything in this comment block.
|
|
||||||
## The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
## revision control system.
|
|
||||||
##
|
|
||||||
## arch-tag: 2f7e97fe-5ef8-49a1-ae12-14ebab69c048
|
|
||||||
|
|
||||||
|
@ -693,11 +693,3 @@ Version : 1.0.17
|
|||||||
|
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
|
||||||
<!--
|
|
||||||
Do not edit or modify anything in this comment block.
|
|
||||||
The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
revision control system.
|
|
||||||
|
|
||||||
arch-tag: f6d3aa8f-983a-4ad3-9681-346e122d815e
|
|
||||||
-->
|
|
||||||
|
@ -74,11 +74,3 @@
|
|||||||
</P>
|
</P>
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
|
||||||
<!--
|
|
||||||
Do not edit or modify anything in this comment block.
|
|
||||||
The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
revision control system.
|
|
||||||
|
|
||||||
arch-tag: 1533a2ca-489c-4190-b602-ecae1cc992e4
|
|
||||||
-->
|
|
||||||
|
@ -1335,11 +1335,3 @@ Version : 1.0.17
|
|||||||
|
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
|
||||||
<!--
|
|
||||||
Do not edit or modify anything in this comment block.
|
|
||||||
The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
revision control system.
|
|
||||||
|
|
||||||
arch-tag: 6ee72f74-0fb3-42b6-a85c-d3331d7145b5
|
|
||||||
-->
|
|
||||||
|
@ -1014,11 +1014,3 @@ Version : 1.0.17
|
|||||||
|
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
|
||||||
<!--
|
|
||||||
Do not edit or modify anything in this comment block.
|
|
||||||
The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
revision control system.
|
|
||||||
|
|
||||||
arch-tag: e610e74b-9ac0-4255-aff8-97ed229a6a3d
|
|
||||||
-->
|
|
||||||
|
@ -44,11 +44,3 @@ embedded files.
|
|||||||
<!-- pepper -->
|
<!-- pepper -->
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
|
||||||
<!--
|
|
||||||
Do not edit or modify anything in this comment block.
|
|
||||||
The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
revision control system.
|
|
||||||
|
|
||||||
arch-tag: 25bcfcfc-231d-4c31-bded-e4184bcaa815
|
|
||||||
-->
|
|
||||||
|
@ -477,11 +477,3 @@ times.
|
|||||||
<BR><BR>
|
<BR><BR>
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
|
||||||
<!--
|
|
||||||
Do not edit or modify anything in this comment block.
|
|
||||||
The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
revision control system.
|
|
||||||
|
|
||||||
arch-tag: a96adffb-3017-46e2-82a0-6d77832b14d5
|
|
||||||
-->
|
|
||||||
|
@ -432,9 +432,3 @@ under one roof. It will combine all of the features of CE, stability and
|
|||||||
support of ME and the speed of NT.
|
support of ME and the speed of NT.
|
||||||
It will be called Windows CEMENT...
|
It will be called Windows CEMENT...
|
||||||
|
|
||||||
|
|
||||||
# Do not edit or modify anything in this comment block.
|
|
||||||
# The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
# revision control system.
|
|
||||||
#
|
|
||||||
# arch-tag: 78d64eac-20f0-4d71-a4e2-3e1b8821596f
|
|
||||||
|
@ -49,11 +49,3 @@ copy of all emails to the libsndfile-announce list.
|
|||||||
<!-- pepper -->
|
<!-- pepper -->
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
|
||||||
<!--
|
|
||||||
Do not edit or modify anything in this comment block.
|
|
||||||
The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
revision control system.
|
|
||||||
|
|
||||||
arch-tag: 71a13776-1e29-47ae-8eee-e376e73dc4db
|
|
||||||
-->
|
|
||||||
|
@ -115,11 +115,3 @@
|
|||||||
|
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
|
||||||
<!--
|
|
||||||
Do not edit or modify anything in this comment block.
|
|
||||||
The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
revision control system.
|
|
||||||
|
|
||||||
arch-tag: 6e99f38b-e2ad-4fdd-bc0f-94bf0c66d243
|
|
||||||
-->
|
|
||||||
|
@ -68,11 +68,3 @@
|
|||||||
</P>
|
</P>
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
|
||||||
<!--
|
|
||||||
Do not edit or modify anything in this comment block.
|
|
||||||
The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
revision control system.
|
|
||||||
|
|
||||||
arch-tag: 3c1ed1be-9875-47f9-90f3-015da975d622
|
|
||||||
-->
|
|
||||||
|
@ -50,11 +50,3 @@
|
|||||||
|
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
|
||||||
<!--
|
|
||||||
Do not edit or modify anything in this comment block.
|
|
||||||
The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
revision control system.
|
|
||||||
|
|
||||||
arch-tag: a7ae18b0-bf27-4c50-b8b2-e209d0cd36c5
|
|
||||||
-->
|
|
||||||
|
@ -131,11 +131,3 @@ If you are using some other method to compile the libsndfile DLL you are on your
|
|||||||
|
|
||||||
</BODY>
|
</BODY>
|
||||||
</HTML>
|
</HTML>
|
||||||
|
|
||||||
<!--
|
|
||||||
Do not edit or modify anything in this comment block.
|
|
||||||
The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
revision control system.
|
|
||||||
|
|
||||||
arch-tag: b32ddb11-eb51-425f-9d39-b8b66284f129
|
|
||||||
-->
|
|
||||||
|
@ -129,11 +129,3 @@ encode_file (const char *infilename, const char *outfilename, int filetype)
|
|||||||
return ;
|
return ;
|
||||||
} /* encode_file */
|
} /* encode_file */
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: fe28ef37-ae89-4f61-966b-0b1f68e37425
|
|
||||||
*/
|
|
||||||
|
@ -248,8 +248,3 @@ class lsndf_example {
|
|||||||
|
|
||||||
} //class lsndf_example {}
|
} //class lsndf_example {}
|
||||||
|
|
||||||
// Do not edit or modify anything in this comment block.
|
|
||||||
// The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
// revision control system.
|
|
||||||
//
|
|
||||||
// arch-tag: 61a46c48-431c-4a16-97a3-b5485ca0e157
|
|
||||||
|
@ -81,10 +81,3 @@ main (void)
|
|||||||
return 0 ;
|
return 0 ;
|
||||||
} /* main */
|
} /* main */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 58127a0c-93a2-46cf-b615-fcb9adacf3f1
|
|
||||||
*/
|
|
||||||
|
@ -94,10 +94,3 @@ main (void)
|
|||||||
return 0 ;
|
return 0 ;
|
||||||
} /* main */
|
} /* main */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: fd945a2c-a306-49ef-a262-6336ced15246
|
|
||||||
*/
|
|
||||||
|
@ -135,11 +135,3 @@ process_data (double *data, int count, int channels)
|
|||||||
return ;
|
return ;
|
||||||
} /* process_data */
|
} /* process_data */
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: de9fdd1e-b807-41ef-9d51-075ba383e536
|
|
||||||
*/
|
|
||||||
|
@ -406,10 +406,3 @@ copy_data_int (SNDFILE *outfile, SNDFILE *infile, int channels)
|
|||||||
return ;
|
return ;
|
||||||
} /* copy_data_int */
|
} /* copy_data_int */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 259682b3-2887-48a6-b5bb-3cde00521ba3
|
|
||||||
*/
|
|
||||||
|
@ -359,10 +359,3 @@ broadcast_dump (const char *filename)
|
|||||||
|
|
||||||
} /* broadcast_dump */
|
} /* broadcast_dump */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: f59a05db-a182-41de-aedd-d717ce2bb099
|
|
||||||
*/
|
|
||||||
|
@ -142,12 +142,3 @@ main (int argc, char *argv [])
|
|||||||
return 0 ;
|
return 0 ;
|
||||||
} /* main */
|
} /* main */
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 5407a79d-88de-41c7-8d8e-9acf2cf13cc1
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
@ -968,10 +968,4 @@ main (int argc, char *argv [])
|
|||||||
|
|
||||||
return 0 ;
|
return 0 ;
|
||||||
} /* main */
|
} /* main */
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 8fc4110d-6cec-4e03-91df-0f384cabedac
|
|
||||||
*/
|
|
||||||
|
@ -489,11 +489,3 @@ os.chdir (source_dir)
|
|||||||
os.system ("rm -rf /tmp/%s" % lite_version)
|
os.system ("rm -rf /tmp/%s" % lite_version)
|
||||||
|
|
||||||
print "Done."
|
print "Done."
|
||||||
|
|
||||||
|
|
||||||
# Do not edit or modify anything in this comment block.
|
|
||||||
# The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
# revision control system.
|
|
||||||
#
|
|
||||||
# arch-tag: 4aa63c4d-930b-4ef8-a0f2-d1c63992b60b
|
|
||||||
|
|
||||||
|
@ -4,9 +4,3 @@ man_MANS = sndfile-info.1 sndfile-play.1 sndfile-convert.1
|
|||||||
|
|
||||||
EXTRA_DIST = sndfile-info.1 sndfile-play.1 sndfile-convert.1
|
EXTRA_DIST = sndfile-info.1 sndfile-play.1 sndfile-convert.1
|
||||||
|
|
||||||
## Do not edit or modify anything in this comment block.
|
|
||||||
## The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
## revision control system.
|
|
||||||
##
|
|
||||||
## arch-tag: a7e49b1a-d2f1-414d-aa5a-3a91ef566d9f
|
|
||||||
|
|
||||||
|
@ -20,9 +20,3 @@ the output file. Run "sndfile-convert --help" for more information.
|
|||||||
.SH AUTHOR
|
.SH AUTHOR
|
||||||
This manual page was written by Erik de Castro Lopo <erikd@mega-nerd.com>.
|
This manual page was written by Erik de Castro Lopo <erikd@mega-nerd.com>.
|
||||||
|
|
||||||
.\" Do not edit or modify anything in this comment block.
|
|
||||||
.\" The following line is a file identity tag for the GNU Arch
|
|
||||||
.\" revision control system.
|
|
||||||
|
|
||||||
.\" arch-tag: 23aa443e-f38d-488b-b7e3-290fc5c77d20
|
|
||||||
|
|
||||||
|
@ -14,9 +14,3 @@ This manual page was originally written by Joshua Haberman
|
|||||||
others). Further additions have been made by Erik de Castro Lopo
|
others). Further additions have been made by Erik de Castro Lopo
|
||||||
<erikd@mega-nerd.com>.
|
<erikd@mega-nerd.com>.
|
||||||
|
|
||||||
.\" Do not edit or modify anything in this comment block.
|
|
||||||
.\" The following line is a file identity tag for the GNU Arch
|
|
||||||
.\" revision control system.
|
|
||||||
|
|
||||||
.\" arch-tag: f9eca35e-5519-434d-bc55-fe845df977cd
|
|
||||||
|
|
||||||
|
@ -34,8 +34,3 @@ This manual page was originally written by Joshua Haberman
|
|||||||
others). Further additions have been made by Erik de Castro Lopo
|
others). Further additions have been made by Erik de Castro Lopo
|
||||||
<erikd@mega-nerd.com>.
|
<erikd@mega-nerd.com>.
|
||||||
|
|
||||||
.\" Do not edit or modify anything in this comment block.
|
|
||||||
.\" The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
.\" revision control system.
|
|
||||||
|
|
||||||
.\" arch-tag: 5a0120d9-040c-464e-b01e-89dc2c2428c9
|
|
||||||
|
@ -10,9 +10,3 @@ INCLUDES = -I$(srcdir)/$(SNDFILEDIR) $(OS_SPECIFIC_CFLAGS)
|
|||||||
sndfile_regtest_SOURCES = sndfile-regtest.c database.c checksum.c
|
sndfile_regtest_SOURCES = sndfile-regtest.c database.c checksum.c
|
||||||
sndfile_regtest_LDADD = $(SNDFILEDIR)/libsndfile.la $(SQLITE3_LIBS)
|
sndfile_regtest_LDADD = $(SNDFILEDIR)/libsndfile.la $(SQLITE3_LIBS)
|
||||||
|
|
||||||
|
|
||||||
## Do not edit or modify anything in this comment block.
|
|
||||||
## The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
## revision control system.
|
|
||||||
##
|
|
||||||
## arch-tag: ac4a9626-49ce-4bb4-9fb6-e43de0a23432
|
|
||||||
|
@ -106,9 +106,3 @@ dot com). If possible place the file on a web server and email the author
|
|||||||
a link to it.
|
a link to it.
|
||||||
|
|
||||||
|
|
||||||
--------------------------------------------------------------------------
|
|
||||||
# Do not edit or modify anything in this comment block.
|
|
||||||
# The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
# revision control system.
|
|
||||||
#
|
|
||||||
# arch-tag: 174661f1-9874-424e-8d8b-301d0322dfdb
|
|
||||||
|
@ -20,16 +20,15 @@
|
|||||||
** A simple checksum for short, int and float data.
|
** A simple checksum for short, int and float data.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "sfconfig.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include <sndfile.h>
|
#include <sndfile.h>
|
||||||
|
|
||||||
#include "float_cast.h"
|
|
||||||
|
|
||||||
#include "regtest.h"
|
#include "regtest.h"
|
||||||
|
|
||||||
#define BIG_PRIME 999983
|
#define BIG_PRIME 999983
|
||||||
@ -116,10 +115,3 @@ float_checksum (SNDFILE * file, int start)
|
|||||||
return start ;
|
return start ;
|
||||||
} /* float_checksum */
|
} /* float_checksum */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The following line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 6ae999d1-dd5a-4306-9e11-d4cfc9e8ae27
|
|
||||||
*/
|
|
||||||
|
@ -491,12 +491,3 @@ dummy (void)
|
|||||||
} /* dummy */
|
} /* dummy */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The following line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: c6bcb7cb-0d9e-47b6-a89a-66304df4d462
|
|
||||||
*/
|
|
||||||
|
@ -36,10 +36,3 @@ int db_del_entry (REG_DB * db_handle, const char * entry) ;
|
|||||||
/* In checksum.c */
|
/* In checksum.c */
|
||||||
int calc_checksum (SNDFILE * file, const SF_INFO * info) ;
|
int calc_checksum (SNDFILE * file, const SF_INFO * info) ;
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The following line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 80138e38-f373-48d3-8152-7f7882a62cd7
|
|
||||||
*/
|
|
||||||
|
@ -119,10 +119,3 @@ main (void)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The following line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 7f318f08-9bfa-4249-856d-fe994819bdce
|
|
||||||
*/
|
|
||||||
|
@ -20,9 +20,3 @@ check: g72x_test
|
|||||||
# Disable autoheader.
|
# Disable autoheader.
|
||||||
AUTOHEADER=echo
|
AUTOHEADER=echo
|
||||||
|
|
||||||
## Do not edit or modify anything in this comment block.
|
|
||||||
## The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
## revision control system.
|
|
||||||
##
|
|
||||||
## arch-tag: d417a8e8-da7f-423d-884d-f03c93379348
|
|
||||||
|
|
||||||
|
@ -152,11 +152,4 @@ g721_decoder(
|
|||||||
/* sr was 14-bit dynamic range */
|
/* sr was 14-bit dynamic range */
|
||||||
return (sr << 2);
|
return (sr << 2);
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 101b6e25-457d-490a-99ae-e2e74a26ea24
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
@ -159,11 +159,4 @@ g723_16_decoder(
|
|||||||
/* sr was of 14-bit dynamic range */
|
/* sr was of 14-bit dynamic range */
|
||||||
return (sr << 2);
|
return (sr << 2);
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: ae265466-c3fc-4f83-bb32-edae488a5ca5
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
@ -136,11 +136,4 @@ g723_24_decoder(
|
|||||||
|
|
||||||
return (sr << 2); /* sr was of 14-bit dynamic range */
|
return (sr << 2); /* sr was of 14-bit dynamic range */
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 75389236-650b-4427-98f3-0df6e8fb24bc
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
@ -150,11 +150,4 @@ int g723_40_decoder (int i, G72x_STATE *state_ptr)
|
|||||||
|
|
||||||
return (sr << 2); /* sr was of 14-bit dynamic range */
|
return (sr << 2); /* sr was of 14-bit dynamic range */
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: eb8d9a00-32bf-4dd2-b287-01b0336d72bf
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
@ -642,11 +642,3 @@ pack_bytes (int bits, const short * samples, unsigned char * block)
|
|||||||
return bindex ;
|
return bindex ;
|
||||||
} /* pack_bytes */
|
} /* pack_bytes */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 6298dc75-fd0f-4062-9b90-f73ed69f22d4
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
@ -89,11 +89,3 @@ int g72x_encode_block (struct g72x_state *pstate, short *samples, unsigned char
|
|||||||
|
|
||||||
#endif /* !G72X_HEADER_FILE */
|
#endif /* !G72X_HEADER_FILE */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 6ca84e5f-f932-4ba1-87ee-37056d921621
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
@ -107,12 +107,3 @@ int g723_40_decoder (int code, G72x_STATE *state_ptr);
|
|||||||
void private_init_state (G72x_STATE *state_ptr) ;
|
void private_init_state (G72x_STATE *state_ptr) ;
|
||||||
|
|
||||||
#endif /* G72X_PRIVATE_H */
|
#endif /* G72X_PRIVATE_H */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: d9ad4da7-0fa3-471d-8020-720b5cfb5e5b
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
@ -212,11 +212,3 @@ oct_save_short (short *a, short *b, int len)
|
|||||||
return 0 ;
|
return 0 ;
|
||||||
} /* oct_save_short */
|
} /* oct_save_short */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 0597b442-a5b0-4abf-92a4-92f6c24e85a6
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ EXTRA_DIST = sndfile.h.in config.h.in test_endswap.tpl test_endswap.def \
|
|||||||
Symbols.linux Symbols.darwin libsndfile.def cygsndfile.def \
|
Symbols.linux Symbols.darwin libsndfile.def cygsndfile.def \
|
||||||
create_symbols_file.py binheader_writef_check.py
|
create_symbols_file.py binheader_writef_check.py
|
||||||
|
|
||||||
noinst_HEADERS = common.h sfconfig.h sfendian.h float_cast.h wav_w64.h sf_unistd.h
|
noinst_HEADERS = common.h sfconfig.h sfendian.h wav_w64.h sf_unistd.h
|
||||||
|
|
||||||
noinst_PROGRAMS = test_main
|
noinst_PROGRAMS = test_main
|
||||||
|
|
||||||
|
12
src/alaw.c
12
src/alaw.c
@ -16,8 +16,11 @@
|
|||||||
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "sfconfig.h"
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "float_cast.h"
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
static sf_count_t alaw_read_alaw2s (SF_PRIVATE *psf, short *ptr, sf_count_t len) ;
|
static sf_count_t alaw_read_alaw2s (SF_PRIVATE *psf, short *ptr, sf_count_t len) ;
|
||||||
@ -535,10 +538,3 @@ alaw_write_d2alaw (SF_PRIVATE *psf, const double *ptr, sf_count_t len)
|
|||||||
return total ;
|
return total ;
|
||||||
} /* alaw_write_d2alaw */
|
} /* alaw_write_d2alaw */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 289ccfc2-42a6-4f1f-a29f-4dcc9bfa8752
|
|
||||||
*/
|
|
||||||
|
8
src/au.c
8
src/au.c
@ -449,10 +449,4 @@ au_read_header (SF_PRIVATE *psf)
|
|||||||
|
|
||||||
return 0 ;
|
return 0 ;
|
||||||
} /* au_read_header */
|
} /* au_read_header */
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 31f691b1-cde9-4ed2-9469-6bca60fb9cd0
|
|
||||||
*/
|
|
||||||
|
@ -245,10 +245,3 @@ avr_close (SF_PRIVATE *psf)
|
|||||||
return 0 ;
|
return 0 ;
|
||||||
} /* avr_close */
|
} /* avr_close */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 0823d454-f39a-4a28-a776-607f1ef33b52
|
|
||||||
*/
|
|
||||||
|
@ -107,8 +107,3 @@ if len (sys.argv) > 1:
|
|||||||
|
|
||||||
print "ok"
|
print "ok"
|
||||||
|
|
||||||
# Do not edit or modify anything in this comment block.
|
|
||||||
# The following line is a file identity tag for the GNU Arch
|
|
||||||
# revision control system.
|
|
||||||
#
|
|
||||||
# arch-tag: 4ed34789-925a-4135-af90-2e51523ca1ce
|
|
||||||
|
@ -22,10 +22,10 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "float_cast.h"
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
@ -529,10 +529,3 @@ caf_write_header (SF_PRIVATE *psf, int calc_length)
|
|||||||
return psf->error ;
|
return psf->error ;
|
||||||
} /* caf_write_header */
|
} /* caf_write_header */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 65883e65-bd3c-4618-9241-d3c02fd630bd
|
|
||||||
*/
|
|
||||||
|
@ -362,10 +362,3 @@ psf_get_max_all_channels (SF_PRIVATE *psf, double *peaks)
|
|||||||
} /* psf_get_max_all_channels */
|
} /* psf_get_max_all_channels */
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 0aae0d9d-ab2b-4d70-ade3-47a534666f8e
|
|
||||||
*/
|
|
||||||
|
@ -159,9 +159,3 @@ else:
|
|||||||
|
|
||||||
sys.exit (0)
|
sys.exit (0)
|
||||||
|
|
||||||
# Do not edit or modify anything in this comment block.
|
|
||||||
# The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
# revision control system.
|
|
||||||
#
|
|
||||||
# arch-tag: 5814f35c-318f-4023-a0c3-d9cf7c9e5f6c
|
|
||||||
|
|
||||||
|
@ -524,10 +524,4 @@ DO_NOT_USE_sf_dither_double (const SF_DITHER_INFO *dither, const double *in, dou
|
|||||||
} /* DO_NOT_USE_sf_dither_double */
|
} /* DO_NOT_USE_sf_dither_double */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 673fad58-5314-421c-9144-9d54bfdf104c
|
|
||||||
*/
|
|
||||||
|
@ -22,11 +22,11 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "float_cast.h"
|
|
||||||
|
|
||||||
#if CPU_IS_LITTLE_ENDIAN
|
#if CPU_IS_LITTLE_ENDIAN
|
||||||
#define DOUBLE64_READ double64_le_read
|
#define DOUBLE64_READ double64_le_read
|
||||||
@ -1041,10 +1041,3 @@ bd2d_write (double *buffer, int count)
|
|||||||
} ;
|
} ;
|
||||||
} /* bd2d_write */
|
} /* bd2d_write */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 4ee243b7-8c7a-469b-869c-e9aa0ee3b77f
|
|
||||||
*/
|
|
||||||
|
@ -199,10 +199,4 @@ dwd_read_header (SF_PRIVATE *psf)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: a5e1d2a6-a840-4039-a0e7-e1a43eb05a4f
|
|
||||||
*/
|
|
||||||
|
@ -31,10 +31,10 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "float_cast.h"
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
@ -660,10 +660,3 @@ dwvw_write_d (SF_PRIVATE *psf, const double *ptr, sf_count_t len)
|
|||||||
return total ;
|
return total ;
|
||||||
} /* dwvw_write_d */
|
} /* dwvw_write_d */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 1ca09552-b01f-4d7f-9bcf-612f834fe41d
|
|
||||||
*/
|
|
||||||
|
@ -1532,10 +1532,3 @@ psf_log_syserr (SF_PRIVATE *psf, int error)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 749740d7-ecc7-47bd-8cf7-600f31d32e6d
|
|
||||||
*/
|
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
@ -34,7 +35,6 @@
|
|||||||
#include "FLAC/include/FLAC/metadata.h"
|
#include "FLAC/include/FLAC/metadata.h"
|
||||||
|
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "float_cast.h"
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
** Private static functions.
|
** Private static functions.
|
||||||
|
@ -22,11 +22,11 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "float_cast.h"
|
|
||||||
|
|
||||||
#if CPU_IS_LITTLE_ENDIAN
|
#if CPU_IS_LITTLE_ENDIAN
|
||||||
#define FLOAT32_READ float32_le_read
|
#define FLOAT32_READ float32_le_read
|
||||||
|
262
src/float_cast.h
262
src/float_cast.h
@ -1,262 +0,0 @@
|
|||||||
/*
|
|
||||||
** Copyright (C) 2001-2004 Erik de Castro Lopo <erikd@mega-nerd.com>
|
|
||||||
**
|
|
||||||
** This program is free software; you can redistribute it and/or modify
|
|
||||||
** it under the terms of the GNU Lesser General Public License as published by
|
|
||||||
** the Free Software Foundation; either version 2.1 of the License, or
|
|
||||||
** (at your option) any later version.
|
|
||||||
**
|
|
||||||
** This program is distributed in the hope that it will be useful,
|
|
||||||
** but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
** GNU Lesser General Public License for more details.
|
|
||||||
**
|
|
||||||
** You should have received a copy of the GNU Lesser General Public License
|
|
||||||
** along with this program; if not, write to the Free Software
|
|
||||||
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Version 1.4 */
|
|
||||||
|
|
||||||
#ifndef FLOAT_CAST_HEADER
|
|
||||||
#define FLOAT_CAST_HEADER
|
|
||||||
|
|
||||||
/*============================================================================
|
|
||||||
** On Intel Pentium processors (especially PIII and probably P4), converting
|
|
||||||
** from float to int is very slow. To meet the C specs, the code produced by
|
|
||||||
** most C compilers targeting Pentium needs to change the FPU rounding mode
|
|
||||||
** before the float to int conversion is performed.
|
|
||||||
**
|
|
||||||
** Changing the FPU rounding mode causes the FPU pipeline to be flushed. It
|
|
||||||
** is this flushing of the pipeline which is so slow.
|
|
||||||
**
|
|
||||||
** Fortunately the ISO C99 specifications define the functions lrint, lrintf,
|
|
||||||
** llrint and llrintf which fix this problem as a side effect.
|
|
||||||
**
|
|
||||||
** On Unix-like systems, the configure process should have detected the
|
|
||||||
** presence of these functions. If they weren't found we have to replace them
|
|
||||||
** here with a standard C cast.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
** The C99 prototypes for lrint and lrintf are as follows:
|
|
||||||
**
|
|
||||||
** long int lrintf (float x) ;
|
|
||||||
** long int lrint (double x) ;
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "sfconfig.h"
|
|
||||||
|
|
||||||
/*
|
|
||||||
** The presence of the required functions are detected during the configure
|
|
||||||
** process and the values HAVE_LRINT and HAVE_LRINTF are set accordingly in
|
|
||||||
** the sfconfig.h file.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define HAVE_LRINT_REPLACEMENT 0
|
|
||||||
|
|
||||||
#if (HAVE_LRINT && HAVE_LRINTF)
|
|
||||||
|
|
||||||
/*
|
|
||||||
** These defines enable functionality introduced with the 1999 ISO C
|
|
||||||
** standard. They must be defined before the inclusion of math.h to
|
|
||||||
** engage them. If optimisation is enabled, these functions will be
|
|
||||||
** inlined. With optimisation switched off, you have to link in the
|
|
||||||
** maths library using -lm.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define _ISOC9X_SOURCE 1
|
|
||||||
#define _ISOC99_SOURCE 1
|
|
||||||
|
|
||||||
#define __USE_ISOC9X 1
|
|
||||||
#define __USE_ISOC99 1
|
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#elif (defined (__CYGWIN__))
|
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#undef HAVE_LRINT_REPLACEMENT
|
|
||||||
#define HAVE_LRINT_REPLACEMENT 1
|
|
||||||
|
|
||||||
#undef lrint
|
|
||||||
#undef lrintf
|
|
||||||
|
|
||||||
#define lrint double2int
|
|
||||||
#define lrintf float2int
|
|
||||||
|
|
||||||
/*
|
|
||||||
** The native CYGWIN lrint and lrintf functions are buggy:
|
|
||||||
** http://sourceware.org/ml/cygwin/2005-06/msg00153.html
|
|
||||||
** http://sourceware.org/ml/cygwin/2005-09/msg00047.html
|
|
||||||
** and slow.
|
|
||||||
** These functions (pulled from the Public Domain MinGW math.h header)
|
|
||||||
** replace the native versions.
|
|
||||||
*/
|
|
||||||
|
|
||||||
static inline long double2int (double in)
|
|
||||||
{ long retval ;
|
|
||||||
|
|
||||||
__asm__ __volatile__
|
|
||||||
( "fistpl %0"
|
|
||||||
: "=m" (retval)
|
|
||||||
: "t" (in)
|
|
||||||
: "st"
|
|
||||||
) ;
|
|
||||||
|
|
||||||
return retval ;
|
|
||||||
} /* double2int */
|
|
||||||
|
|
||||||
static inline long float2int (float in)
|
|
||||||
{ long retval ;
|
|
||||||
|
|
||||||
__asm__ __volatile__
|
|
||||||
( "fistpl %0"
|
|
||||||
: "=m" (retval)
|
|
||||||
: "t" (in)
|
|
||||||
: "st"
|
|
||||||
) ;
|
|
||||||
|
|
||||||
return retval ;
|
|
||||||
} /* float2int */
|
|
||||||
|
|
||||||
#elif (defined (WIN32) || defined (_WIN32))
|
|
||||||
|
|
||||||
#undef HAVE_LRINT_REPLACEMENT
|
|
||||||
#define HAVE_LRINT_REPLACEMENT 1
|
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Win32 doesn't seem to have these functions.
|
|
||||||
** Therefore implement inline versions of these functions here.
|
|
||||||
*/
|
|
||||||
|
|
||||||
__inline long int
|
|
||||||
lrint (double flt)
|
|
||||||
{ int intgr ;
|
|
||||||
|
|
||||||
_asm
|
|
||||||
{ fld flt
|
|
||||||
fistp intgr
|
|
||||||
} ;
|
|
||||||
|
|
||||||
return intgr ;
|
|
||||||
}
|
|
||||||
|
|
||||||
__inline long int
|
|
||||||
lrintf (float flt)
|
|
||||||
{ int intgr ;
|
|
||||||
|
|
||||||
_asm
|
|
||||||
{ fld flt
|
|
||||||
fistp intgr
|
|
||||||
} ;
|
|
||||||
|
|
||||||
return intgr ;
|
|
||||||
}
|
|
||||||
|
|
||||||
#elif (defined (__MWERKS__) && defined (macintosh))
|
|
||||||
|
|
||||||
/* This MacOS 9 solution was provided by Stephane Letz */
|
|
||||||
|
|
||||||
#undef HAVE_LRINT_REPLACEMENT
|
|
||||||
#define HAVE_LRINT_REPLACEMENT 1
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#undef lrint
|
|
||||||
#undef lrintf
|
|
||||||
|
|
||||||
#define lrint double2int
|
|
||||||
#define lrintf float2int
|
|
||||||
|
|
||||||
inline int
|
|
||||||
float2int (register float in)
|
|
||||||
{ long res [2] ;
|
|
||||||
|
|
||||||
asm
|
|
||||||
{ fctiw in, in
|
|
||||||
stfd in, res
|
|
||||||
}
|
|
||||||
return res [1] ;
|
|
||||||
} /* float2int */
|
|
||||||
|
|
||||||
inline int
|
|
||||||
double2int (register double in)
|
|
||||||
{ long res [2] ;
|
|
||||||
|
|
||||||
asm
|
|
||||||
{ fctiw in, in
|
|
||||||
stfd in, res
|
|
||||||
}
|
|
||||||
return res [1] ;
|
|
||||||
} /* double2int */
|
|
||||||
|
|
||||||
#elif (defined (__MACH__) && defined (__APPLE__))
|
|
||||||
|
|
||||||
/* For Apple MacOSX. */
|
|
||||||
|
|
||||||
#undef HAVE_LRINT_REPLACEMENT
|
|
||||||
#define HAVE_LRINT_REPLACEMENT 1
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#undef lrint
|
|
||||||
#undef lrintf
|
|
||||||
|
|
||||||
#define lrint double2int
|
|
||||||
#define lrintf float2int
|
|
||||||
|
|
||||||
inline static long
|
|
||||||
float2int (register float in)
|
|
||||||
{ int res [2] ;
|
|
||||||
|
|
||||||
__asm__ __volatile__
|
|
||||||
( "fctiw %1, %1\n\t"
|
|
||||||
"stfd %1, %0"
|
|
||||||
: "=m" (res) /* Output */
|
|
||||||
: "f" (in) /* Input */
|
|
||||||
: "memory"
|
|
||||||
) ;
|
|
||||||
|
|
||||||
return res [1] ;
|
|
||||||
} /* lrintf */
|
|
||||||
|
|
||||||
inline static long
|
|
||||||
double2int (register double in)
|
|
||||||
{ int res [2] ;
|
|
||||||
|
|
||||||
__asm__ __volatile__
|
|
||||||
( "fctiw %1, %1\n\t"
|
|
||||||
"stfd %1, %0"
|
|
||||||
: "=m" (res) /* Output */
|
|
||||||
: "f" (in) /* Input */
|
|
||||||
: "memory"
|
|
||||||
) ;
|
|
||||||
|
|
||||||
return res [1] ;
|
|
||||||
} /* lrint */
|
|
||||||
|
|
||||||
#else
|
|
||||||
#ifndef __sgi
|
|
||||||
#warning "Don't have the functions lrint() and lrintf()."
|
|
||||||
#warning "Replacing these functions with a standard C cast."
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <math.h>
|
|
||||||
|
|
||||||
#define lrint(dbl) ((long) (dbl))
|
|
||||||
#define lrintf(flt) ((long) (flt))
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* FLOAT_CAST_HEADER */
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 42db1693-ff61-4051-bac1-e4d24c4e30b7
|
|
||||||
*/
|
|
@ -21,10 +21,10 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "float_cast.h"
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "G72x/g72x.h"
|
#include "G72x/g72x.h"
|
||||||
|
|
||||||
@ -602,10 +602,3 @@ g72x_close (SF_PRIVATE *psf)
|
|||||||
return 0 ;
|
return 0 ;
|
||||||
} /* g72x_close */
|
} /* g72x_close */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 3cc5439e-7247-486b-b2e6-11a4affa5744
|
|
||||||
*/
|
|
||||||
|
@ -21,10 +21,10 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "float_cast.h"
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "wav_w64.h"
|
#include "wav_w64.h"
|
||||||
#include "GSM610/gsm.h"
|
#include "GSM610/gsm.h"
|
||||||
@ -617,10 +617,3 @@ gsm610_close (SF_PRIVATE *psf)
|
|||||||
return 0 ;
|
return 0 ;
|
||||||
} /* gsm610_close */
|
} /* gsm610_close */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 8575187d-af4f-4acf-b9dd-6ff705628345
|
|
||||||
*/
|
|
||||||
|
@ -216,10 +216,4 @@ htk_read_header (SF_PRIVATE *psf)
|
|||||||
|
|
||||||
return 0 ;
|
return 0 ;
|
||||||
} /* htk_read_header */
|
} /* htk_read_header */
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: c350e972-082e-4c20-8934-03391a723560
|
|
||||||
*/
|
|
||||||
|
@ -21,10 +21,10 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "float_cast.h"
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
typedef struct IMA_ADPCM_PRIVATE_tag
|
typedef struct IMA_ADPCM_PRIVATE_tag
|
||||||
@ -966,11 +966,3 @@ ima_write_d (SF_PRIVATE *psf, const double *ptr, sf_count_t len)
|
|||||||
return total ;
|
return total ;
|
||||||
} /* ima_write_d */
|
} /* ima_write_d */
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 75a54b82-ad18-4758-9933-64e00a7f24e0
|
|
||||||
*/
|
|
||||||
|
@ -297,10 +297,4 @@ interleave_seek (SF_PRIVATE *psf, int mode, sf_count_t samples_from_start)
|
|||||||
|
|
||||||
return samples_from_start ;
|
return samples_from_start ;
|
||||||
} /* interleave_seek */
|
} /* interleave_seek */
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 82314e13-0225-4408-a2f2-e6dab3f38904
|
|
||||||
*/
|
|
||||||
|
@ -320,10 +320,3 @@ get_encoding_str (int encoding)
|
|||||||
return "Unknown encoding" ;
|
return "Unknown encoding" ;
|
||||||
} /* get_encoding_str */
|
} /* get_encoding_str */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: f2714ab8-f286-4c94-9740-edaf673a1c71
|
|
||||||
*/
|
|
||||||
|
@ -43,10 +43,3 @@ macbinary3_open (SF_PRIVATE * UNUSED (psf))
|
|||||||
|
|
||||||
#endif /* OS_IS_MACOSX */
|
#endif /* OS_IS_MACOSX */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: c397a7d7-1a31-4349-9684-bd29ef06211e
|
|
||||||
*/
|
|
||||||
|
@ -49,10 +49,3 @@ macos_guess_file_type (SF_PRIVATE * psf, const char *filename)
|
|||||||
return 0 ;
|
return 0 ;
|
||||||
} /* macos_guess_file_type */
|
} /* macos_guess_file_type */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 5fbf66d7-9547-442a-9c73-92fd164f3a95
|
|
||||||
*/
|
|
||||||
|
10
src/mat4.c
10
src/mat4.c
@ -22,11 +22,11 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "float_cast.h"
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
** Information on how to decode and encode this file was obtained in a PDF
|
** Information on how to decode and encode this file was obtained in a PDF
|
||||||
@ -386,10 +386,4 @@ mat4_marker_to_str (int marker)
|
|||||||
LSF_SNPRINTF (str, sizeof (str) - 1, "%08X", marker) ;
|
LSF_SNPRINTF (str, sizeof (str) - 1, "%08X", marker) ;
|
||||||
return str ;
|
return str ;
|
||||||
} /* mat4_marker_to_str */
|
} /* mat4_marker_to_str */
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: f7e5f5d6-fc39-452e-bc4a-59627116ff59
|
|
||||||
*/
|
|
||||||
|
@ -22,11 +22,11 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "float_cast.h"
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
** Information on how to decode and encode this file was obtained in a PDF
|
** Information on how to decode and encode this file was obtained in a PDF
|
||||||
@ -498,10 +498,3 @@ mat5_read_header (SF_PRIVATE *psf)
|
|||||||
return 0 ;
|
return 0 ;
|
||||||
} /* mat5_read_header */
|
} /* mat5_read_header */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: dfdb6742-b2be-4be8-b390-d0c674e8bc8e
|
|
||||||
*/
|
|
||||||
|
@ -21,10 +21,10 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "float_cast.h"
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "wav_w64.h"
|
#include "wav_w64.h"
|
||||||
|
|
||||||
@ -825,10 +825,4 @@ choose_predictor (unsigned int channels, short *data, int *block_pred, int *idel
|
|||||||
|
|
||||||
return ;
|
return ;
|
||||||
} /* choose_predictor */
|
} /* choose_predictor */
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: a98908a3-5305-4935-872b-77d6a86c330f
|
|
||||||
*/
|
|
||||||
|
@ -114,10 +114,3 @@ new_read_header (SF_PRIVATE *psf)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 98c77ff6-81a6-440d-bad1-4597f51df956
|
|
||||||
*/
|
|
||||||
|
@ -357,11 +357,3 @@ nist_write_header (SF_PRIVATE *psf, int calc_length)
|
|||||||
return psf->error ;
|
return psf->error ;
|
||||||
} /* nist_write_header */
|
} /* nist_write_header */
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: b45ed85d-9e22-4ad9-b78c-4b58b67152a8
|
|
||||||
*/
|
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#if HAVE_UNISTD_H
|
#if HAVE_UNISTD_H
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -65,7 +66,6 @@
|
|||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "float_cast.h"
|
|
||||||
|
|
||||||
#include "VORBIS/include/vorbis/codec.h"
|
#include "VORBIS/include/vorbis/codec.h"
|
||||||
#include "VORBIS/include/vorbis/vorbisenc.h"
|
#include "VORBIS/include/vorbis/vorbisenc.h"
|
||||||
|
10
src/paf.c
10
src/paf.c
@ -23,10 +23,10 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "float_cast.h"
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
@ -828,11 +828,3 @@ paf24_write_d (SF_PRIVATE *psf, const double *ptr, sf_count_t len)
|
|||||||
return total ;
|
return total ;
|
||||||
} /* paf24_write_d */
|
} /* paf24_write_d */
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 477a5308-451e-4bbd-bab4-fab6caa4e884
|
|
||||||
*/
|
|
||||||
|
10
src/pcm.c
10
src/pcm.c
@ -18,9 +18,10 @@
|
|||||||
|
|
||||||
#include "sfconfig.h"
|
#include "sfconfig.h"
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "float_cast.h"
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
/* Need to be able to handle 3 byte (24 bit) integers. So defined a
|
/* Need to be able to handle 3 byte (24 bit) integers. So defined a
|
||||||
@ -2898,10 +2899,3 @@ pcm_write_d2lei (SF_PRIVATE *psf, const double *ptr, sf_count_t len)
|
|||||||
return total ;
|
return total ;
|
||||||
} /* pcm_write_d2lei */
|
} /* pcm_write_d2lei */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: d8bc7c0e-1e2f-4ff3-a28f-10ce1fbade3b
|
|
||||||
*/
|
|
||||||
|
@ -186,10 +186,3 @@ pvf_read_header (SF_PRIVATE *psf)
|
|||||||
|
|
||||||
return 0 ;
|
return 0 ;
|
||||||
} /* pvf_read_header */
|
} /* pvf_read_header */
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 20a26761-8bc1-41d7-b1f3-9793bf3d9864
|
|
||||||
*/
|
|
||||||
|
@ -102,10 +102,3 @@ raw_open (SF_PRIVATE *psf)
|
|||||||
|
|
||||||
return error ;
|
return error ;
|
||||||
} /* raw_open */
|
} /* raw_open */
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: f0066de7-d6ce-4f36-a1e0-e475c07d4e1a
|
|
||||||
*/
|
|
||||||
|
@ -317,10 +317,3 @@ rx2_close (SF_PRIVATE *psf)
|
|||||||
} /* rx2_close */
|
} /* rx2_close */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 7366e813-9fee-4d1f-881e-e4a691469370
|
|
||||||
*/
|
|
||||||
|
@ -23,11 +23,11 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "float_cast.h"
|
|
||||||
|
|
||||||
/*------------------------------------------------------------------------------
|
/*------------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -984,10 +984,3 @@ sds_write (SF_PRIVATE *psf, SDS_PRIVATE *psds, const int *ptr, int len)
|
|||||||
return total ;
|
return total ;
|
||||||
} /* sds_write */
|
} /* sds_write */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: d5d26aa3-368c-4ca6-bb85-377e5a2578cc
|
|
||||||
*/
|
|
||||||
|
@ -58,10 +58,4 @@
|
|||||||
** #define _IFMT _S_IFMT
|
** #define _IFMT _S_IFMT
|
||||||
** #define _IFREG _S_IFREG
|
** #define _IFREG _S_IFREG
|
||||||
*/
|
*/
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 253aea6d-6299-46fd-8d06-bc5f6224c8fe
|
|
||||||
*/
|
|
||||||
|
@ -99,10 +99,3 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 2df2316e-8f9d-4860-bba7-f3c16c63eed3
|
|
||||||
*/
|
|
||||||
|
@ -252,10 +252,3 @@ endswap_double_copy (double *dest, const double *src, int len)
|
|||||||
|
|
||||||
#endif /* SFENDIAN_INCLUDED */
|
#endif /* SFENDIAN_INCLUDED */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: f0c5cd54-42d3-4237-90ec-11fe24995de7
|
|
||||||
*/
|
|
||||||
|
@ -198,10 +198,3 @@ hexdump (void *data, int len)
|
|||||||
} /* hexdump */
|
} /* hexdump */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 04393aa1-9389-46fe-baf2-58a7bd544fd6
|
|
||||||
*/
|
|
||||||
|
@ -403,11 +403,3 @@ svx_write_header (SF_PRIVATE *psf, int calc_length)
|
|||||||
return psf->error ;
|
return psf->error ;
|
||||||
} /* svx_write_header */
|
} /* svx_write_header */
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: a80ab6fb-7d75-4d32-a6b0-0061a3f05d95
|
|
||||||
*/
|
|
||||||
|
@ -370,10 +370,3 @@ txw_seek (SF_PRIVATE *psf, int mode, sf_count_t offset)
|
|||||||
} /* txw_seek */
|
} /* txw_seek */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 4d0ba7af-b1c5-46b4-a900-7c6f59fd9a89
|
|
||||||
*/
|
|
||||||
|
12
src/ulaw.c
12
src/ulaw.c
@ -16,8 +16,11 @@
|
|||||||
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "sfconfig.h"
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "float_cast.h"
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
static sf_count_t ulaw_read_ulaw2s (SF_PRIVATE *psf, short *ptr, sf_count_t len) ;
|
static sf_count_t ulaw_read_ulaw2s (SF_PRIVATE *psf, short *ptr, sf_count_t len) ;
|
||||||
@ -1038,10 +1041,3 @@ ulaw_write_d2ulaw (SF_PRIVATE *psf, const double *ptr, sf_count_t len)
|
|||||||
return total ;
|
return total ;
|
||||||
} /* ulaw_write_d2ulaw */
|
} /* ulaw_write_d2ulaw */
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 655cc790-f058-45e8-89c9-86967cccc37e
|
|
||||||
*/
|
|
||||||
|
@ -34,10 +34,10 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
#include "sndfile.h"
|
#include "sndfile.h"
|
||||||
#include "sfendian.h"
|
#include "sfendian.h"
|
||||||
#include "float_cast.h"
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "ima_oki_adpcm.h"
|
#include "ima_oki_adpcm.h"
|
||||||
|
|
||||||
|
@ -577,11 +577,3 @@ w64_close (SF_PRIVATE *psf)
|
|||||||
return 0 ;
|
return 0 ;
|
||||||
} /* w64_close */
|
} /* w64_close */
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 9aa4e141-538a-4dd9-99c9-b3f0f2dd4f4a
|
|
||||||
*/
|
|
||||||
|
@ -569,10 +569,3 @@ wav_w64_srate2blocksize (int srate_chan_product)
|
|||||||
return 1024 ;
|
return 1024 ;
|
||||||
return 2048 ;
|
return 2048 ;
|
||||||
} /* srate2blocksize */
|
} /* srate2blocksize */
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 43c1b1dd-8abd-43da-a8cd-44da914b64a5
|
|
||||||
*/
|
|
||||||
|
@ -284,10 +284,4 @@ void wavex_write_guid (SF_PRIVATE *psf, const EXT_SUBFORMAT * subformat) ;
|
|||||||
void wav_w64_analyze (SF_PRIVATE *psf) ;
|
void wav_w64_analyze (SF_PRIVATE *psf) ;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
/*
|
|
||||||
** Do not edit or modify anything in this comment block.
|
|
||||||
** The arch-tag line is a file identity tag for the GNU Arch
|
|
||||||
** revision control system.
|
|
||||||
**
|
|
||||||
** arch-tag: 877fde12-9be3-4a31-8a5a-fdae39958613
|
|
||||||
*/
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user