From: Josh Coalson Date: Fri, 19 Jul 2002 05:35:30 +0000 (+0000) Subject: add AIFF support patches from Brady Patterson X-Git-Tag: 1.2.0~1749 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ade9234da00637aaa69c77f69e753d10758dce8e;p=platform%2Fupstream%2Fflac.git add AIFF support patches from Brady Patterson --- diff --git a/AUTHORS b/AUTHORS index 0a5111c..7df10eb 100644 --- a/AUTHORS +++ b/AUTHORS @@ -18,7 +18,7 @@ FLAC (http://flac.sourceforge.net/) is an Open Source lossless audio -codec developed by Josh Coalson. +codec developed by Josh Coalson . Other major contributors and their contributions: "Andrey Astafiev" @@ -27,6 +27,9 @@ Other major contributors and their contributions: "Miroslav Lichvar" * IA-32 assembly versions of several libFLAC routines +"Brady Patterson" +* AIFF file support + "Daisuke Shimamura" * id3 v1/v2 and i18n support in the XMMS plugin diff --git a/doc/html/documentation.html b/doc/html/documentation.html index 776d125..b269f59 100644 --- a/doc/html/documentation.html +++ b/doc/html/documentation.html @@ -212,10 +212,10 @@

- flac is the command-line file encoder/decoder. The input to the encoder and the output to the decoder must either be RIFF WAVE format, or raw interleaved sample data. flac only supports linear PCM samples (in other words, no A-LAW, uLAW, etc.). Another restriction (hopefully short-term) is that the input must be 8, 16, or 24 bits per sample. This is not a limitation of the FLAC format, just the reference encoder/decoder. + flac is the command-line file encoder/decoder. The input to the encoder and the output to the decoder must either be RIFF WAVE format, AIFF, or raw interleaved sample data. flac only supports linear PCM samples (in other words, no A-LAW, uLAW, etc.). Another restriction (hopefully short-term) is that the input must be 8, 16, or 24 bits per sample. This is not a limitation of the FLAC format, just the reference encoder/decoder.

- flac assumes that files ending in ".wav" or that have the RIFF WAVE header present are WAVE files; this may be overridden with a command-line option; it also assumes that files ending in ".ogg" are Ogg-FLAC files. Other than this, flac makes no assumptions about file extensions, though the convention is that FLAC files have the extension ".flac" (or ".fla" on ancient file systems like FAT-16). + flac assumes that files ending in ".wav" or that have the RIFF WAVE header present are WAVE files, and files ending in ".aif" or ".aiff" or have the AIFF header present are in AIFF files. This may be overridden with a command-line option. It also assumes that files ending in ".ogg" are Ogg-FLAC files. Other than this, flac makes no assumptions about file extensions, though the convention is that FLAC files have the extension ".flac" (or ".fla" on ancient file systems like FAT-16).

Before going into the full command-line description, a few other things help to sort it out: 1) flac encodes by default, so you must use -d to decode; 2) the options -0 .. -8 (or --fast and --best) that control the compression level actually are just synonyms for different groups of specific encoding options (described later) and you can get the same effect by using the same options; 3) flac behaves similarly to gzip in the way it handles input and output files. @@ -264,7 +264,7 @@

Also, you can force output data to go to stdout using -c.

-

The encoding options affect the compression ratio and encoding speed. The format options are used to tell flac the arrangement of samples if the input file (or output file when decoding) is a raw file. If it is a RIFF WAVE file the format options are not needed since they are read from the WAVE header. +

The encoding options affect the compression ratio and encoding speed. The format options are used to tell flac the arrangement of samples if the input file (or output file when decoding) is a raw file. If it is a RIFF WAVE or AIFF file the format options are not needed since they are read from the AIFF/WAVE header.

In test mode, flac acts just like in decode mode, except no output file is written. Both decode and test modes detect errors in the stream, but they also detect when the MD5 signature of the decoded audio does not match the stored MD5 signature, even when the bitstream is valid.