harmony 鸿蒙Multimedia Subsystem Changelog
Multimedia Subsystem Changelog
cl.multimedia.1 Changed the Declaration of the Focus Event Callback of Audio Renderer C APIs
For the audio renderer C APIs of API version 10, the focus event callback is changed from OH_AudioRenderer_OnInterrptEvent to OH_AudioRenderer_OnInterruptEvent.
Change Impact
Applications that use the involved APIs may have compatibility issues.
Key API/Component Changes
Before change:
int32_t (*OH_AudioRenderer_OnInterrptEvent)(
OH_AudioRenderer* renderer,
void* userData,
OH_AudioInterrupt_ForceType type,
OH_AudioInterrupt_Hint hint);
After change:
int32_t (*OH_AudioRenderer_OnInterruptEvent)(
OH_AudioRenderer* renderer,
void* userData,
OH_AudioInterrupt_ForceType type,
OH_AudioInterrupt_Hint hint);
Adaptation Guide
To define the focus event for an audio renderer, use the function pointer OH_AudioRenderer_OnInterruptEvent. Example:
Before change:
OH_AudioRenderer_Callbacks callbacks;
callbacks.OH_AudioRenderer_OnInterrptEvent = AudioRendererOnInterrptEvent;
After change:
OH_AudioRenderer_Callbacks callbacks;
callbacks.OH_AudioRenderer_OnInterruptEvent = AudioRendererOnInterrptEvent;
cl.multimedia.2 Changed the Declaration of the Focus Event Callback of Audio Capturer C APIs
For the audio capturer C APIs of API version 10, the focus event callback is changed from OH_AudioCapturer_OnInterrptEvent to OH_AudioCapturer_OnInterruptEvent.
Change Impact
Applications that use the involved APIs may have compatibility issues.
Key API/Component Changes
Before change:
int32_t (*OH_AudioCapturer_OnInterrptEvent)(
OH_AudioCapturer* renderer,
void* userData,
OH_AudioInterrupt_ForceType type,
OH_AudioInterrupt_Hint hint);
After change:
int32_t (*OH_AudioCapturer_OnInterruptEvent)(
OH_AudioCapturer* capturer,
void* userData,
OH_AudioInterrupt_ForceType type,
OH_AudioInterrupt_Hint hint);
Adaptation Guide
To define the focus event for an audio capturer, use the function pointer OH_AudioCapturer_OnInterruptEvent. Example:
Before change:
OH_AudioCapturer_Callbacks callbacks;
callbacks.OH_AudioCapturer_OnInterrptEvent = AudioCaptureOnInterruptEvent;
After change:
OH_AudioCapturer_Callbacks callbacks;
callbacks.OH_AudioCapturer_OnInterruptEvent = AudioCaptureOnInterruptEvent;
你可能感兴趣的鸿蒙文章
harmony 鸿蒙ArkUI Subsystem Changelog
harmony 鸿蒙Bundle Management Subsystem Changelog
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦