| CPC G06F 3/165 (2013.01) | 18 Claims |

|
1. A method for audio playback, comprising:
receiving an instruction for rate adjustment, wherein the instruction for rate adjustment is configured to adjust an audio playback rate from a first multiple of a preset standard rate to a second multiple of the preset standard rate;
creating a second audio filter according to the second multiple;
calling the second audio filter to perform rate change processing according to the second multiple on second audio data in a first cache to obtain third audio data, wherein the second audio data is obtained after a first audio filter performs first processing on first audio data, and the first processing comprises at least one of the following: audio decoding, a format conversion, sampling, and a channel conversion; and
playing the third audio data,
wherein the calling the second audio filter to perform rate change processing according to the second multiple on second audio data in a first cache to obtain third audio data comprises:
calling the second audio filter to perform the rate change processing according to the second multiple on the second audio data in the first cache to obtain the third audio data in response to determining that an audio data amount in a player cache is less than or equal to a first data amount threshold.
|