摘要 |
An audio signal in which an audio signal is received as a stream of digital samples, each being a numerical value representing a sampled signal level. A first zero crossing point is identified and the received audio samples are stored until a second zero crossing point is identified, thereby storing a first half-wave of samples. The highest intensity sample is identified from the stored samples and this is compared against a predetermined threshold. All stored samples are scaled by an initial scaling factor so that the intensity of the highest intensity sample is not above this threshold. A second half-wave of samples is stored in which all samples of the second half-wave are below the threshold. All stored samples of the second half-wave are also scaled but by a modified scaling factor derived from a combination of the initial scaling factor and a decay factor. |