A method for encoding an audio signal, including providing a masking function,
representative of psychoacoustic masking; setting a quality value for data of the
encoded signal, adjusting the masking function dependent upon the quality value;
and allocating bits for quantization of the encoded signal based on the incremental
masking function.