Usage: sndscale inputFile outputFile
Parameters
An input and an output file name, followed by one or more gain values.
The file name '-' indicates stdin for the input file and stdout for
the output file.
Function
Copies the input file to the output file, applying a gain that causes
the maximum magnitude sample in the output file to be just slightly
less than the maximum magnitude possible, given the sample size.
[In my implementation, I used 95% of the maximum possible value.
Exactly what you use isn't terribly important.]
Note that a single gain is applied to all channels.
Output File Format
#Channels | Same as input file
|
Frequency | Same as input file
|
Sample size | 32-bits
|