1# Multimedia Subsystem Changelog
2
3## cl.multimedia.1 Changed the Declaration of the Focus Event Callback of Audio Renderer C APIs
4
5For the audio renderer C APIs of API version 10, the focus event callback is changed from **OH_AudioRenderer_OnInterrptEvent** to **OH_AudioRenderer_OnInterruptEvent**.
6
7**Change Impact**
8
9Applications that use the involved APIs may have compatibility issues.
10
11**Key API/Component Changes**
12
13Before change:
14
15 ```C
16int32_t (*OH_AudioRenderer_OnInterrptEvent)(
17        OH_AudioRenderer* renderer,
18        void* userData,
19        OH_AudioInterrupt_ForceType type,
20        OH_AudioInterrupt_Hint hint);
21 ```
22
23After change:
24
25 ```C
26int32_t (*OH_AudioRenderer_OnInterruptEvent)(
27        OH_AudioRenderer* renderer,
28        void* userData,
29        OH_AudioInterrupt_ForceType type,
30        OH_AudioInterrupt_Hint hint);
31 ```
32
33**Adaptation Guide**
34
35To define the focus event for an audio renderer, use the function pointer **OH_AudioRenderer_OnInterruptEvent**. Example:
36
37Before change:
38
39```C
40OH_AudioRenderer_Callbacks callbacks;
41callbacks.OH_AudioRenderer_OnInterrptEvent = AudioRendererOnInterrptEvent;
42```
43
44After change:
45
46```C
47OH_AudioRenderer_Callbacks callbacks;
48callbacks.OH_AudioRenderer_OnInterruptEvent = AudioRendererOnInterrptEvent;
49```
50
51## cl.multimedia.2 Changed the Declaration of the Focus Event Callback of Audio Capturer C APIs
52
53For the audio capturer C APIs of API version 10, the focus event callback is changed from **OH_AudioCapturer_OnInterrptEvent** to **OH_AudioCapturer_OnInterruptEvent**.
54
55**Change Impact**
56
57Applications that use the involved APIs may have compatibility issues.
58
59**Key API/Component Changes**
60
61Before change:
62
63 ```C
64int32_t (*OH_AudioCapturer_OnInterrptEvent)(
65        OH_AudioCapturer* renderer,
66        void* userData,
67        OH_AudioInterrupt_ForceType type,
68        OH_AudioInterrupt_Hint hint);
69 ```
70
71After change:
72
73 ```C
74int32_t (*OH_AudioCapturer_OnInterruptEvent)(
75        OH_AudioCapturer* capturer,
76        void* userData,
77        OH_AudioInterrupt_ForceType type,
78        OH_AudioInterrupt_Hint hint);
79 ```
80
81**Adaptation Guide**
82
83To define the focus event for an audio capturer, use the function pointer **OH_AudioCapturer_OnInterruptEvent**. Example:
84
85Before change:
86
87```C
88OH_AudioCapturer_Callbacks callbacks;
89callbacks.OH_AudioCapturer_OnInterrptEvent = AudioCaptureOnInterruptEvent;
90```
91
92After change:
93
94```C
95OH_AudioCapturer_Callbacks callbacks;
96callbacks.OH_AudioCapturer_OnInterruptEvent = AudioCaptureOnInterruptEvent;
97```
98