Perform ADPCM compression and conversion to SPU stream file format (*.ads) from uncompressed audio data.
Note: Only WAV files with straight PCM are supported. That is, the WAV file must have "fmt tag = 1".
encode (Abbreviated form: e)
Options | Meaning |
-o | Overwrite if output file already exists |
-d [directory] | Specify output directory. |
-v | Provide detailed progress report |
-aiff | Treat input file as a Macintosh AIFF file. |
-wave | Treat input file as a Windows WAVE file. |
-raw | Treat input file as Raw PCM file. |
-a | Perform ADPCM compression. |
-8 | Treat input sample as 8-bit PCM. |
-16 | Treat input sample as 16-bit PCM. |
-le | Treat input sample as little endian (Intel format). |
-be | Treat input sample as big endian (Motorola format). |
-st | Treat input sample as stereo. |
-mn | Treat input sample as monaural. |
-sn | Treat input sample as signed integers. |
-us | Treat input sample as unsigned integers. |
-sr: sampling rate | Specify the sampling rate for the sample. |
-is: interleave size | Specify the interleave size used for the output. |
-sba: address | Set loop_start_block_address for the SPU stream file header. |
-eba: address | Set loop_end_block_address for the SPU stream file header. |
If an option for specifying the file format is omitted, auto-detection will determine if the file is an AIFF or WAVE file. An error will be generated if the file is neither.
If the input is a raw file, sampling format (e.g., sampling rate) should be set in the options. For AIFF or WAVE files, this will be reflected in the file header information.
Sampling bits | 16 bit (raw format) |
Sampling format | Stereo, little endian, signed (raw format) |
Sampling rate | Settings required (raw format) |
Interleave size | 512 byte (PCM), 32 byte (ADPCM) |
loop_start_block_address | 0xffffffff (no loop) |
loop_end_block_address | 0xffffffff (no loop) |
Parameter 1 | Audio file serving as conversion source file |
Parameter 2 (optional) | Audio file (If omitted, the output file will be the conversion source filename with an ads extension.) |
[EOF]
Last update:1999/09/27