pub unsafe extern "C" fn OH_AudioSessionManager_GetDefaultOutputDevice(
audioSessionManager: *mut OH_AudioSessionManager,
deviceType: *mut OH_AudioDevice_Type,
) -> OH_AudioCommon_ResultAvailable on crate features
api-12 and api-20 only.Expand description
Gets the default output device.
§Arguments
-
audioSessionManager- the [#OH_AudioSessionManager] returned by the [#OH_AudioManager_GetAudioSessionManager] -
deviceType- The target device.The available deviceTypes are: EARPIECE: Built-in earpiece SPEAKER: Built-in speaker DEFAULT: System default output device
§Returns
- [
#AUDIOCOMMON_RESULT_SUCCESS] if execution succeeds or [#AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM] if parameter validation fails or [#AUDIOCOMMON_RESULT_ERROR_ILLEGAL_STATE] if system illegal state
Available since API-level: 20