Skip to main content

OH_AudioManager_GetAudioSessionManager

Function OH_AudioManager_GetAudioSessionManager 

Source
pub unsafe extern "C" fn OH_AudioManager_GetAudioSessionManager(
    audioSessionManager: *mut *mut OH_AudioSessionManager,
) -> OH_AudioCommon_Result
Available on crate feature api-12 only.
Expand description

Fetch the audio session manager handle. The audio session manager handle should be the first parameter in audio session related functions

§Arguments

  • audioSessionManager - the [#OH_AudioSessionManager] which will be returned as the output parameter

§Returns

  • [#AUDIOCOMMON_RESULT_SUCCESS] if execution succeeds or [#AUDIOCOMMON_RESULT_ERROR_SYSTEM] if system state error

Available since API-level: 12