pub unsafe extern "C" fn OH_AudioWorkgroup_AddCurrentThread(
group: *mut OH_AudioWorkgroup,
tokenId: *mut i32,
) -> OH_AudioCommon_ResultAvailable on crate feature
api-20 only.Expand description
Add current thread into a specified audio workgroup as audio data processing thread.
§Arguments
-
group-OH_AudioWorkgrouphandle provided byOH_AudioResourceManager_CreateWorkgroup. -
tokenId- a token id that represent the thread added.
§Returns
- [
#AUDIOCOMMON_RESULT_SUCCESS] if execution succeeds [#AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM] if input param is nullptr [#AUDIOCOMMON_RESULT_ERROR_NO_MEMORY] out of resources for the new thread [#AUDIOCOMMON_RESULT_ERROR_SYSTEM] system process error occurs
Available since API-level: 20