8000 [3.10] bpo-2716: add license for audioop module (GH-19972) (#98532) · python/cpython@586bb1f · GitHub
[go: up one dir, main page]

Skip to content

Commit 586bb1f

Browse files
[3.10] bpo-2716: add license for audioop module (GH-19972) (#98532)
bpo-2716: add license for audioop module (GH-19972) (cherry picked from commit 4c1145b) Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
1 parent 97106d3 commit 586bb1f

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