摘要 |
To determine the number of bits to encode a current audio frame, in accordance with a running average of the common scale factors for all preceding audio frames, a common scale factor for the-current frame is computed. The current frame is encoded using the computed common scale factor if the same falls within a defined range, and the number of bits required to so encode the frame also falls within a calculated range. If, the number of bits required to so encode the frame falls outside the calculated range, an energy level associated with the current frame and a running average of the energies of all previous frames is computed, which in turn, are used to compute a target bit rate. Thereafter, a common scale factor which results in coding of the current frame using a number of bits close to the target bit rate is obtained.
|