Skip to content

Commit 4c1145b

Browse files
authored
bpo-2716: add license for audioop module (#19972)
1 parent 3e95ffc commit 4c1145b

File tree

2 files changed

+55
-14
lines changed

2 files changed

+55
-14
lines changed

Doc/license.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,3 +987,28 @@ https://www.w3.org/TR/xml-c14n2-testcases/ and is distributed under the
987987
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
988988
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
989989
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
990+
991+
Audioop
992+
-------
993+
The audioop module uses the code base in g771.c file of the SoX project::
994+
Programming the AdLib/Sound Blaster
995+
FM Music Chips
996+
Version 2.0 (24 Feb 1992)
997+
Copyright (c) 1991, 1992 by Jeffrey S. Lee
998+
999+
Warranty and Copyright Policy
1000+
This document is provided on an "as-is" basis, and its author makes
1001+
no warranty or representation, express or implied, with respect to
1002+
its quality performance or fitness for a particular purpose. In no
1003+
event will the author of this document be liable for direct, indirect,
1004+
special, incidental, or consequential damages arising out of the use
1005+
or inability to use the information contained within. Use of this
1006+
document is at your own risk.
1007+
This file may be used and copied freely so long as the applicable
1008+
copyright notices are retained, and no modifications are made to the
1009+
text of the document. No money shall be charged for its distribution
1010+
beyond reasonable shipping, handling and duplication costs, nor shall
1011+
proprietary changes be made to this document so that it cannot be
1012+
distributed freely. This document may not be included in published
1013+
material or commercial packages without the written consent of its
1014+
author.

Modules/audioop.c

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
/* The audioop module uses the code base in g777.c file of the Sox project.
2+
* Source: https://web.archive.org/web/19970716121258/http://www.spies.com/Sox/Archive/soxgamma.tar.gz
3+
* Programming the AdLib/Sound Blaster
4+
* FM Music Chips
5+
* Version 2.0 (24 Feb 1992)
6+
*
7+
* Copyright (c) 1991, 1992 by Jeffrey S. Lee
8+
*
9+
10+
*
11+
*
12+
*
13+
* Warranty and Copyright Policy
14+
*
15+
* This document is provided on an "as-is" basis, and its author makes
16+
* no warranty or representation, express or implied, with respect to
17+
* its quality performance or fitness for a particular purpose. In no
18+
* event will the author of this document be liable for direct, indirect,
19+
* special, incidental, or consequential damages arising out of the use
20+
* or inability to use the information contained within. Use of this
21+
* document is at your own risk.
22+
*
23+
* This file may be used and copied freely so long as the applicable
24+
* copyright notices are retained, and no modifications are made to the
25+
* text of the document. No money shall be charged for its distribution
26+
* beyond reasonable shipping, handling and duplication costs, nor shall
27+
* proprietary changes be made to this document so that it cannot be
28+
* distributed freely. This document may not be included in published
29+
* material or commercial packages without the written consent of its
30+
* author. */
131

232
/* audioopmodule - Module to detect peak values in arrays */
333

@@ -28,20 +58,6 @@ fbound(double val, double minval, double maxval)
2858
}
2959

3060

31-
/* Code shamelessly stolen from sox, 12.17.7, g711.c
32-
** (c) Craig Reese, Joe Campbell and Jeff Poskanzer 1989 */
33-
34-
/* From g711.c:
35-
*
36-
* December 30, 1994:
37-
* Functions linear2alaw, linear2ulaw have been updated to correctly
38-
* convert unquantized 16 bit values.
39-
* Tables for direct u- to A-law and A- to u-law conversions have been
40-
* corrected.
41-
* Borge Lindberg, Center for PersonKommunikation, Aalborg University.
42-
43-
*
44-
*/
4561
#define BIAS 0x84 /* define the add-in bias for 16 bit samples */
4662
#define CLIP 32635
4763
#define SIGN_BIT (0x80) /* Sign bit for an A-law byte. */

0 commit comments

Comments
 (0)