1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-13 08:05:52 +01:00

Move library tree where it belongs

This commit is contained in:
ra
2010-01-24 09:19:39 +00:00
parent e74978ba77
commit 58caf78a86
6020 changed files with 2790154 additions and 0 deletions

View File

@@ -0,0 +1,97 @@
/**********************************************************************
* ISO MPEG Audio Subgroup Software Simulation Group (1996)
* ISO 13818-3 MPEG-2 Audio Encoder - Lower Sampling Frequency Extension
*
* $Id: common.txt,v 1.3 2008-02-01 19:44:21 richardash1981 Exp $
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/11/15 16:04:26 nhumfrey
* Changed suffix for files.
*
* Revision 1.1.1.1 2005/04/15 01:10:19 nhumfrey
* Initial import.
*
* Revision 1.2 1997/01/19 22:28:29 rowlands
* Layer 3 bug fixes from Seymour Shlien
*
* Revision 1.1 1996/02/14 04:04:23 rowlands
* Initial revision
*
* Received from Mike Coleman
**********************************************************************/
/**********************************************************************
* date programmers comment *
* 2/25/91 Doulas Wong, start of version 1.0 records *
* Davis Pan *
* 5/10/91 W. Joseph Carter Created this file for all common *
* functions and global variables. *
* Ported to Macintosh and Unix. *
* Added Jean-Georges Fritsch's *
* "bitstream.c" package. *
* Added routines to handle AIFF PCM *
* sound files. *
* Added "mem_alloc()" and "mem_free()" *
* routines for memory allocation *
* portability. *
* Added routines to convert between *
* Apple SANE extended floating point *
* format and IEEE double precision *
* floating point format. For AIFF. *
* 02jul91 dpwe (Aware Inc) Moved allocation table input here; *
* Tables read from subdir TABLES_PATH. *
* Added some debug printout fns (Write*)*
* 7/10/91 Earle Jennings replacement of the one float by FLOAT *
* port to MsDos from MacIntosh version *
* 8/ 5/91 Jean-Georges Fritsch fixed bug in open_bit_stream_r() *
*10/ 1/91 S.I. Sudharsanan, Ported to IBM AIX platform. *
* Don H. Lee, *
* Peter W. Farrett *
*10/3/91 Don H. Lee implemented CRC-16 error protection *
* newly introduced functions are *
* I_CRC_calc, II_CRC_calc and *
* update_CRC. Additions and revisions *
* are marked with dhl for clarity *
*10/18/91 Jean-Georges Fritsch fixed bug in update_CRC(), *
* II_CRC_calc() and I_CRC_calc() *
* 2/11/92 W. Joseph Carter Ported new code to Macintosh. Most *
* important fixes involved changing *
* 16-bit ints to long or unsigned in *
* bit alloc routines for quant of 65535 *
* and passing proper function args. *
* Removed "Other Joint Stereo" option *
* and made bitrate be total channel *
* bitrate, irrespective of the mode. *
* Fixed many small bugs & reorganized. *
* 3/20/92 Jean-Georges Fritsch fixed bug in start-of-frame search *
* 6/15/92 Juan Pineda added refill_buffer(bs) "n" *
* initialization *
* 7/08/92 Susanne Ritscher MS-DOS, MSC6.0 port fixes *
* 7/27/92 Mike Li (re-)Port to MS-DOS *
* 8/19/92 Soren H. Nielsen Fixed bug in I_CRC_calc and in *
* II_CRC_calc. Added function: new_ext *
* for better MS-DOS compatability *
* 3/10/93 Kevin Peterson changed aiff_read_headers to handle *
* chunks in any order. now returns *
* position of sound data in file. *
* 3/31/93 Jens Spille changed IFF_* string compares to use *
* strcmp() *
* 5/30/93 Masahiro Iwadare removed the previous modification *
* for UNIX. *
* 8/27/93 Seymour Shlien, Fixes in Unix and MSDOS ports, *
* Daniel Lauzon, and *
* Bill Truerniet *
*--------------------------------------------------------------------*
* 8/24/93 Masahiro Iwadare Included IS modification in Layer III.*
* Changed for 1 pass decoding. *
* 9/07/93 Toshiyuki Ishino Integrated Layer III with Ver 3.9. *
*--------------------------------------------------------------------*
* 11/20/93 Masahiro Iwadare Integrated Layer III with Ver 4.0. *
*--------------------------------------------------------------------*
* 7/14/94 Juergen Koller rewind of bitbuffer added *
* 6/12/95 Soeren H. Nielsen Bug fix in new_ext(). *
* 7/11/95 Soeren H. Nielsen Changes for MPEG-2 LSF Layer I and II *
*--------------------------------------------------------------------*
* 8/02/95 mc@fivebats.com Added code to determine byte-order, *
* fixes to AIFF routines. Modified Mac *
* code to work with new Apple headers *
**********************************************************************/

View File

@@ -0,0 +1,74 @@
/**********************************************************************
* ISO MPEG Audio Subgroup Software Simulation Group (1996)
* ISO 13818-3 MPEG-2 Audio Encoder - Lower Sampling Frequency Extension
*
* $Id: commonh.txt,v 1.3 2008-02-01 19:44:21 richardash1981 Exp $
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/11/15 16:04:26 nhumfrey
* Changed suffix for files.
*
* Revision 1.1.1.1 2005/04/15 01:10:19 nhumfrey
* Initial import.
*
* Revision 1.1 1996/02/14 04:04:23 rowlands
* Initial revision
*
* Received from Mike Coleman
**********************************************************************/
/**********************************************************************
* date programmers comment *
* 2/25/91 Doulas Wong, start of version 1.0 records *
* Davis Pan *
* 5/10/91 W. Joseph Carter Reorganized & renamed all ".h" files *
* into "common.h" and "encoder.h". *
* Ported to Macintosh and Unix. *
* Added additional type definitions for *
* AIFF, double/SANE and "bitstream.c". *
* Added function prototypes for more *
* rigorous type checking. *
* 27jun91 dpwe (Aware) Added "alloc_*" defs & prototypes *
* Defined new struct 'frame_params'. *
* Changed info.stereo to info.mode_ext *
* #define constants for mode types *
* Prototype arguments if PROTO_ARGS *
* 5/28/91 Earle Jennings added MS_DOS definition *
* MsDos function prototype declarations *
* 7/10/91 Earle Jennings added FLOAT definition as double *
*10/ 3/91 Don H. Lee implemented CRC-16 error protection *
* 2/11/92 W. Joseph Carter Ported new code to Macintosh. Most *
* important fixes involved changing *
* 16-bit ints to long or unsigned in *
* bit alloc routines for quant of 65535 *
* and passing proper function args. *
* Removed "Other Joint Stereo" option *
* and made bitrate be total channel *
* bitrate, irrespective of the mode. *
* Fixed many small bugs & reorganized. *
* Modified some function prototypes. *
* Changed BUFFER_SIZE back to 4096. *
* 7/27/92 Michael Li (re-)Ported to MS-DOS *
* 7/27/92 Masahiro Iwadare Ported to Convex *
* 8/07/92 mc@tv.tek.com *
* 8/10/92 Amit Gulati Ported to the AIX Platform (RS6000) *
* AIFF string constants redefined *
* 8/27/93 Seymour Shlien, Fixes in Unix and MSDOS ports, *
* Daniel Lauzon, and *
* Bill Truerniet *
*--------------------------------------------------------------------*
* 4/23/92 J. Pineda Added code for Layer III. *
* 11/9/92 Amit Gulati Added defines for layerIII stereo *
* modes. *
* 8/24/93 Masahiro Iwadare Included IS modification in Layer III.*
* Changed for 1 pass decoding. *
* 9/07/93 Toshiyuki Ishino Integrated Layer III with Ver 3.9. *
*--------------------------------------------------------------------*
* 11/20/93 Masahiro Iwadare Integrated Layer III with Ver 4.0. *
*--------------------------------------------------------------------*
* 7/14/94 Juergen Koller Fix for HPUX an IRIX in AIFF-Strings *
* 6/12/95 Soeren H. Nielsen Bug fix in new_ext(). *
* 7/11/95 Soeren H. Nielsen Added defs. for MPEG-2 LSF *
*--------------------------------------------------------------------*
* 8/02/95 mc@fivebats.com Changes to AIFF stuff for portability *
* to little-endian machines *
**********************************************************************/

View File

@@ -0,0 +1,90 @@
/**********************************************************************
* ISO MPEG Audio Subgroup Software Simulation Group (1996)
* ISO 13818-3 MPEG-2 Audio Encoder - Lower Sampling Frequency Extension
*
* $Id: encode.txt,v 1.3 2008-02-01 19:44:21 richardash1981 Exp $
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/11/15 16:04:26 nhumfrey
* Changed suffix for files.
*
* Revision 1.1.1.1 2005/04/15 01:10:20 nhumfrey
* Initial import.
*
* Revision 1.1 1996/02/14 04:04:23 rowlands
* Initial revision
*
* Received from Mike Coleman
**********************************************************************/
/**********************************************************************
* date programmers comment *
* 3/01/91 Douglas Wong, start of version 1.1 records *
* Davis Pan *
* 3/06/91 Douglas Wong rename: setup.h to endef.h *
* efilter to enfilter *
* ewindow to enwindow *
* integrated "quantizer", "scalefactor",*
* and "transmission" files *
* update routine "window_subband" *
* 3/31/91 Bill Aspromonte replaced read_filter by *
* create_an_filter *
* 5/10/91 W. Joseph Carter Ported to Macintosh and Unix. *
* Incorporated Jean-Georges Fritsch's *
* "bitstream.c" package. *
* Incorporated Bill Aspromonte's *
* filterbank coefficient matrix *
* calculation routines and added *
* roundoff to coincide with specs. *
* Modified to strictly adhere to *
* encoded bitstream specs, including *
* "Berlin changes". *
* Modified PCM sound file handling to *
* process all incoming samples and fill *
* out last encoded frame with zeros *
* (silence) if needed. *
* Located and fixed numerous software *
* bugs and table data errors. *
* 19jun91 dpwe (Aware) moved "alloc_*" reader to common.c *
* Globals sblimit, alloc replaced by new*
* struct 'frame_params' passed as arg. *
* Added JOINT STEREO coding, layers I,II*
* Affects: *_bit_allocation, *
* subband_quantization, encode_bit_alloc*
* sample_encoding *
* 6/10/91 Earle Jennings modified II_subband_quantization to *
* resolve type cast problem for MS_DOS *
* 6/11/91 Earle Jennings modified to avoid overflow on MS_DOS *
* in routine filter_subband *
* 7/10/91 Earle Jennings port to MsDos from MacIntosh version *
* 8/ 8/91 Jens Spille Change for MS-C6.00 *
*10/ 1/91 S.I. Sudharsanan, Ported to IBM AIX platform. *
* Don H. Lee, *
* Peter W. Farrett *
*10/ 3/91 Don H. Lee implemented CRC-16 error protection *
* newly introduced function encode_CRC *
*11/ 8/91 Kathy Wang Documentation of code *
* All variablenames are referred to *
* with surrounding pound (#) signs *
* 2/11/92 W. Joseph Carter Ported new code to Macintosh. Most *
* important fixes involved changing *
* 16-bit ints to long or unsigned in *
* bit alloc routines for quant of 65535 *
* and passing proper function args. *
* Removed "Other Joint Stereo" option *
* and made bitrate be total channel *
* bitrate, irrespective of the mode. *
* Fixed many small bugs & reorganized. *
* 6/16/92 Shaun Astarabadi Changed I_scale_factor_calc() and *
* II_scale_factor_calc() to use scale *
* factor 0 thru 62 only and not to *
* encode index 63 into the bit stream. *
* 7/27/92 Mike Li (re-)Port to MS-DOS *
* 9/22/92 jddevine@aware.com Fixed _scale_factor_calc() defs *
* 3/31/93 Giogio Dimino changed II_a_bit_allocation() from: *
* if( ad > ...) to if(ad >= ...) *
* 8/05/93 TEST changed I_a_bit_allocation() from: *
* if( ad > ...) to if(ad >= ...) *
* 8/02/95 mc@fivebats.com Changed audio file reading code to *
* read samples big-endian *
*10/15/95 mc@fivebats.com Modified get_audio() for layer3-LSF *
**********************************************************************/

View File

@@ -0,0 +1,50 @@
/**********************************************************************
* ISO MPEG Audio Subgroup Software Simulation Group (1996)
* ISO 13818-3 MPEG-2 Audio Encoder - Lower Sampling Frequency Extension
*
* $Id: encoderh.txt,v 1.3 2008-02-01 19:44:21 richardash1981 Exp $
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/11/15 16:04:26 nhumfrey
* Changed suffix for files.
*
* Revision 1.1.1.1 2005/04/15 01:10:20 nhumfrey
* Initial import.
*
* Revision 1.1 1996/02/14 04:04:23 rowlands
* Initial revision
*
* Received from Mike Coleman
**********************************************************************/
/**********************************************************************
* date programmers comment *
* 2/25/91 Doulas Wong, start of version 1.0 records *
* Davis Pan *
* 5/10/91 W. Joseph Carter Reorganized & renamed all ".h" files *
* into "common.h" and "encoder.h". *
* Ported to Macintosh and Unix. *
* Added function prototypes for more *
* rigorous type checking. *
* 27jun91 dpwe (Aware) moved "alloc_*" types, pros to common *
* Use ifdef PROTO_ARGS for prototypes *
* prototypes reflect frame_params struct*
* 7/10/91 Earle Jennings Conversion of all floats to FLOAT *
* 10/3/91 Don H. Lee implemented CRC-16 error protection *
* Additions and revisions are marked *
* with "dhl" for clarity *
* 2/11/92 W. Joseph Carter Ported new code to Macintosh. Most *
* important fixes involved changing *
* 16-bit ints to long or unsigned in *
* bit alloc routines for quant of 65535 *
* and passing proper function args. *
* Removed "Other Joint Stereo" option *
* and made bitrate be total channel *
* bitrate, irrespective of the mode. *
* Fixed many small bugs & reorganized. *
* Modified some function prototypes. *
* 7/27/92 Masahiro Iwadare FFT modifications for Layer 3 *
* 8/3/92 Mike Li removed declaration _stklen for DOS. *
* 9/22/92 jddevine@aware.com Fix protos for _scale_factor_calc() *
* 11/04/94 Jon Rowlands Fix protos for usage() *
* 07/11/95 Soeren H. Nielsen Changed defs. and protos for LSF *
**********************************************************************/

View File

@@ -0,0 +1,110 @@
/**********************************************************************
* ISO MPEG Audio Subgroup Software Simulation Group (1996)
* ISO 13818-3 MPEG-2 Audio Encoder - Lower Sampling Frequency Extension
*
* $Id: musicin.txt,v 1.3 2008-02-01 19:44:22 richardash1981 Exp $
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/11/15 16:04:26 nhumfrey
* Changed suffix for files.
*
* Revision 1.1.1.1 2005/04/15 01:10:20 nhumfrey
* Initial import.
*
* Revision 1.2 1997/01/19 22:28:29 rowlands
* Layer 3 bug fixes from Seymour Shlien
*
* Revision 1.1 1996/02/14 04:04:23 rowlands
* Initial revision
*
* Received from Mike Coleman
**********************************************************************/
/**********************************************************************
* date programmers comment *
* 3/01/91 Douglas Wong, start of version 1.1 records *
* Davis Pan *
* 3/06/91 Douglas Wong, rename: setup.h to endef.h *
* removed extraneous variables *
* 3/21/91 J.Georges Fritsch introduction of the bit-stream *
* package. This package allows you *
* to generate the bit-stream in a *
* binary or ascii format *
* 3/31/91 Bill Aspromonte replaced the read of the SB matrix *
* by an "code generated" one *
* 5/10/91 W. Joseph Carter Ported to Macintosh and Unix. *
* Incorporated Jean-Georges Fritsch's *
* "bitstream.c" package. *
* Modified to strictly adhere to *
* encoded bitstream specs, including *
* "Berlin changes". *
* Modified user interface dialog & code *
* to accept any input & output *
* filenames desired. Also added *
* de-emphasis prompt and final bail-out *
* opportunity before encoding. *
* Added AIFF PCM sound file reading *
* capability. *
* Modified PCM sound file handling to *
* process all incoming samples and fill *
* out last encoded frame with zeros *
* (silence) if needed. *
* Located and fixed numerous software *
* bugs and table data errors. *
* 27jun91 dpwe (Aware Inc) Used new frame_params struct. *
* Clear all automatic arrays. *
* Changed some variable names, *
* simplified some code. *
* Track number of bits actually sent. *
* Fixed padding slot, stereo bitrate *
* Added joint-stereo : scales L+R. *
* 6/12/91 Earle Jennings added fix for MS_DOS in obtain_param *
* 6/13/91 Earle Jennings added stack length adjustment before *
* main for MS_DOS *
* 7/10/91 Earle Jennings conversion of all float to FLOAT *
* port to MsDos from MacIntosh completed*
* 8/ 8/91 Jens Spille Change for MS-C6.00 *
* 8/22/91 Jens Spille new obtain_parameters() *
*10/ 1/91 S.I. Sudharsanan, Ported to IBM AIX platform. *
* Don H. Lee, *
* Peter W. Farrett *
*10/ 3/91 Don H. Lee implemented CRC-16 error protection *
* newly introduced functions are *
* I_CRC_calc, II_CRC_calc and encode_CRC*
* Additions and revisions are marked *
* with "dhl" for clarity *
*11/11/91 Katherine Wang Documentation of code. *
* (variables in documentation are *
* surround by the # symbol, and an '*'*
* denotes layer I or II versions) *
* 2/11/92 W. Joseph Carter Ported new code to Macintosh. Most *
* important fixes involved changing *
* 16-bit ints to long or unsigned in *
* bit alloc routines for quant of 65535 *
* and passing proper function args. *
* Removed "Other Joint Stereo" option *
* and made bitrate be total channel *
* bitrate, irrespective of the mode. *
* Fixed many small bugs & reorganized. *
* 2/25/92 Masahiro Iwadare made code cleaner and more consistent *
* 8/07/92 Mike Coleman make exit() codes return error status *
* made slight changes for portability *
*19 aug 92 Soren H. Nielsen Changed MS-DOS file name extensions. *
* 8/25/92 Shaun Astarabadi Replaced rint() function with explicit*
* rounding for portability with MSDOS. *
* 9/22/92 jddevine@aware.com Fixed _scale_factor_calc() calls. *
*10/19/92 Masahiro Iwadare added info->mode and info->mode_ext *
* updates for AIFF format files *
* 3/10/93 Kevin Peterson In parse_args, only set non default *
* bit rate if specified in arg list. *
* Use return value from aiff_read_hdrs *
* to fseek to start of sound data *
* 7/26/93 Davis Pan fixed bug in printing info->mode_ext *
* value for joint stereo condition *
* 8/27/93 Seymour Shlien, Fixes in Unix and MSDOS ports, *
* Daniel Lauzon, and *
* Bill Truerniet *
* 11/7/95 Soeren H. Nielsen LSF added. Bug fix in MSDOS ext. *
* 8/02/95 mc@fivebats.com Changed default bitrate selection so *
* it works with the new LSF stuff *
*10/01/95 mc@fivebats.com Added layer3 *
**********************************************************************/

View File

@@ -0,0 +1,32 @@
/**********************************************************************
* ISO MPEG Audio Subgroup Software Simulation Group (1996)
* ISO 13818-3 MPEG-2 Audio Encoder - Lower Sampling Frequency Extension
*
* $Id: psy.txt,v 1.3 2008-02-01 19:44:22 richardash1981 Exp $
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/11/15 16:04:26 nhumfrey
* Changed suffix for files.
*
* Revision 1.1.1.1 2005/04/15 01:10:20 nhumfrey
* Initial import.
*
* Revision 1.1 1996/02/14 04:04:23 rowlands
* Initial revision
*
* Received from Mike Coleman
**********************************************************************/
/**********************************************************************
* date programmers comment *
* 2/25/91 Davis Pan start of version 1.0 records *
* 5/10/91 W. Joseph Carter Ported to Macintosh and Unix. *
* 7/10/91 Earle Jennings Ported to MsDos. *
* replace of floats with FLOAT *
* 2/11/92 W. Joseph Carter Fixed mem_alloc() arg for "absthr". *
* 7/24/92 M. Iwadare HANN window coefficients modified. *
* 7/27/92 Masahiro Iwadare Bug fix, FFT modification for Layer 3 *
* 7/27/92 Masahiro Iwadare Bug fix, "new", "old", and "oldest" *
* updates *
* 8/07/92 Mike Coleman Bug fix, read_absthr() *
* 95/3/21 Jon Rowlands Removed extra debug statements *
**********************************************************************/

View File

@@ -0,0 +1,73 @@
/**********************************************************************
* ISO MPEG Audio Subgroup Software Simulation Group (1996)
* ISO 13818-3 MPEG-2 Audio Encoder - Lower Sampling Frequency Extension
*
* $Id: tonal.txt,v 1.3 2008-02-01 19:44:22 richardash1981 Exp $
*
* $Log: not supported by cvs2svn $
* Revision 1.1 2005/11/15 16:04:26 nhumfrey
* Changed suffix for files.
*
* Revision 1.1.1.1 2005/04/15 01:10:20 nhumfrey
* Initial import.
*
* Revision 1.1 1996/02/14 04:04:23 rowlands
* Initial revision
*
* Received from Mike Coleman
**********************************************************************/
/**********************************************************************
* date programmers comment *
* 2/25/91 Douglas Wong start of version 1.1 records *
* 3/06/91 Douglas Wong rename: setup.h to endef.h *
* updated I_psycho_one and II_psycho_one*
* 3/11/91 W. J. Carter Added Douglas Wong's updates dated *
* 3/9/91 for I_Psycho_One() and for *
* II_Psycho_One(). *
* 5/10/91 W. Joseph Carter Ported to Macintosh and Unix. *
* Located and fixed numerous software *
* bugs and table data errors. *
* 6/11/91 Davis Pan corrected several bugs *
* based on comments from H. Fuchs *
* 01jul91 dpwe (Aware Inc.) Made pow() args float *
* Removed logical bug in I_tonal_label: *
* Sometimes *tone returned == STOP *
* 7/10/91 Earle Jennings no change necessary in port to MsDos *
* 11sep91 dpwe@aware.com Subtracted 90.3dB from II_f_f_t peaks *
* 10/1/91 Peter W. Farrett Updated II_Psycho_One(),I_Psycho_One()*
* to include comments. *
*11/29/91 Masahiro Iwadare Bug fix regarding POWERNORM *
* fixed several other miscellaneous bugs*
* 2/11/92 W. Joseph Carter Ported new code to Macintosh. Most *
* important fixes involved changing *
* 16-bit ints to long or unsigned in *
* bit alloc routines for quant of 65535 *
* and passing proper function args. *
* Removed "Other Joint Stereo" option *
* and made bitrate be total channel *
* bitrate, irrespective of the mode. *
* Fixed many small bugs & reorganized. *
* 2/12/92 Masahiro Iwadare Fixed some potential bugs in *
* Davis Pan subsampling() *
* 2/25/92 Masahiro Iwadare Fixed some more potential bugs *
* 6/24/92 Tan Ah Peng Modified window for FFT *
* (denominator N-1 to N) *
* Updated all critical band rate & *
* absolute threshold tables and critical*
* boundaries for use with Layer I & II *
* Corrected boundary limits for tonal *
* component computation *
* Placement of non-tonal component at *
* geometric mean of critical band *
* (previous placement method commented *
* out - can be used if desired) *
* 3/01/93 Mike Li Infinite looping fix in noise_label() *
* 3/19/93 Jens Spille fixed integer overflow problem in *
* psychoacoutic model 1 *
* 3/19/93 Giorgio Dimino modifications to better account for *
* tonal and non-tonal components *
* 5/28/93 Sriram Jayasimha "London" mod. to psychoacoustic model1*
* 8/05/93 Masahiro Iwadare noise_label modification "option" *
* 1/21/94 Seymore Shlien fixed another infinite looping problem*
* 7/12/95 Soeren H. Nielsen Changes for LSF, new tables *
**********************************************************************/