摘要 |
Disclosed are an audio stream decoding method and device, the audio stream decoding method comprising: the number of audio frames currently cached in an audio stream buffer area of an electronic device is determined; when the number of frames is greater than a first quantity threshold value and less than the total number of audio frames which can be cached in the audio stream buffer area, after a preset length of time, discard processing is performed on the audio frames in the audio stream buffer area; un-discarded audio frames in the audio stream buffer area are decoded. Applying the described technical solution, the present invention utilises a method wherein when the number of audio frames in the audio stream buffer area is greater than the first quantity threshold value and less than the total number of audio frames which can be cached in the audio stream buffer area, after the preset length of time, discard processing is performed on the audio frames, thereby reducing the number of times audio frame discarding occurs within an audio frame decoding process, and reducing the number of times a plosive sound occurs. |