pub unsafe extern "C" fn OH_AudioResourceManager_CreateWorkgroup(
resourceManager: *mut OH_AudioResourceManager,
name: *const c_char,
group: *mut *mut OH_AudioWorkgroup,
) -> OH_AudioCommon_ResultAvailable on crate feature
api-20 only.Expand description
Create a workgroup for audio data processing threads in application. System manages cpu resources by workgroup configuration.
§Arguments
-
resourceManager-OH_AudioResourceManagerhandle provided by [OH_AudioManager_GetAudioRoutingManager]. -
name- workgroup name -
group-OH_AudioWorkgrouphandle for managing audio data processing threads.
§Returns
- [
#AUDIOCOMMON_RESULT_SUCCESS] if execution succeeds [#AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM] if input param is nullptr [#AUDIOCOMMON_RESULT_ERROR_NO_MEMORY] out of workgroup resources [#AUDIOCOMMON_RESULT_ERROR_SYSTEM] system process error occurs
Available since API-level: 20