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