Skip to main content

OH_AudioWorkgroup_AddCurrentThread

Function OH_AudioWorkgroup_AddCurrentThread 

Source
pub unsafe extern "C" fn OH_AudioWorkgroup_AddCurrentThread(
    group: *mut OH_AudioWorkgroup,
    tokenId: *mut i32,
) -> OH_AudioCommon_Result
Available on crate feature api-20 only.
Expand description

Add current thread into a specified audio workgroup as audio data processing thread.

§Arguments

§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