Functions as an ADOCM encoder for N64 audio
vadpcm_enc -c codebook [-t] [-l minLoopLength] aifcFile codedFile
vadpcm_enc encodes AIFC or AIFF sound files and produces a compressed binary file that is used by the Nintendo 64 audio library. The encoding algorithm is based on a switched ADPCM algorithm which uses a codebook to define a table of prediction coefficients. Coefficients from the table are selected adaptively during encoding to give the best sound quality. The Nintendo 64 compressed sound format currently supports a single loop point that should be defined in the input file's Instrument Chunk. The codebook and loop point definitions are embedded in the final output file.
Command Line Options
There is a restriction in the audio library that requires that in a single call to alAudioFrame a sound must only pass through two loop crossings. To ensure less than two loop crossings, the ADPCM encoder can stretch loops by repeating them. The currently defined default minimum loop length is 1600 samples. This default length can be changed by using a command line option. Loops shorter than the minimum loop length will be repeated until the total loop length is larger than the minimum length. In a given application, the required minimum loop length depends on the number of samples requested in a single call to alAudioFrame and the maximum pitch shift incurred by the samples. For further information, see Chapter 19 in the N64 Programming Manual.
1999/04/30 Changed Format