1e41f4b71Sopenharmony_ci# Multimedia Subsystem Changelog
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci## cl.multimedia.1 APIs setRenderRate and getRenderRate of the AudioRenderer Class in ohos.multimedia.audio Are Deprecated
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci**Access Level**
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ciPublic API
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci**Reason for Change**
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ciThe **setRenderRate** and **getRenderRate** APIs are deprecated and replaced by **setSpeed** and **getSpeed**, which provide more comprehensive functions.
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci**Change Impact**
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ciThe change is not compatible with earlier versions. You are advised to use new APIs.
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci**API Level**
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_cisetRenderRate(): 8
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_cigetRenderRate(): 8
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_cigetRenderRateSync(): 10
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci**Deprecated Since**
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ciOpenHarmony SDK 4.1.5.5
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ci**Deprecated APIs**
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ciIn the **AudioRenderer** class:
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_cisetRenderRate(rate: AudioRendererRate, callback: AsyncCallback\<void>): void;
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_cisetRenderRate(rate: AudioRendererRate): Promise\<void>;
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_cigetRenderRate(callback: AsyncCallback\<AudioRendererRate>): void;
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_cigetRenderRate(): Promise\<AudioRendererRate>;
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_cigetRenderRateSync(): AudioRendererRate;
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ci**Adaptation Guide**
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ciUse the new APIs in **AudioRenderer**. The new APIs support the adjustment of the playback speed through a floating point number instead of a fixed multiple.
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_cisetSpeed(speed: number): void;
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_cigetSpeed(): number;
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ciThe deprecated APIs will be retained for five more SDK versions. Make your adaptation plan as required.
52