pub unsafe extern "C" fn OH_AudioStreamManager_GetDirectPlaybackSupport(
audioStreamManager: *mut OH_AudioStreamManager,
streamInfo: *mut OH_AudioStreamInfo,
usage: OH_AudioStream_Usage,
directPlaybackMode: *mut OH_AudioStream_DirectPlaybackMode,
) -> OH_AudioCommon_ResultAvailable on crate feature
api-19 only.Expand description
Gets the mode of direct playback available for a given audio format with current active device.
§Arguments
-
audioStreamManager- theOH_AudioStreamManagerhandle provided byOH_AudioManager_GetAudioStreamManager. -
streamInfo- theOH_AudioStreamInfo. -
usage- theOH_AudioStream_Usage. -
directPlaybackMode- theOH_AudioStream_DirectPlaybackModepointer to a variable which receives the result.
§Returns
- Function result code:
[
AUDIOCOMMON_RESULT_SUCCESS] If the execution is successful. [AUDIOCOMMON_RESULT_ERROR_INVALID_PARAM]: 1.The param of audioStreamManager is nullptr; 2.The param of streamInfo is nullptr; 3.The param of usage invalid; 4.The param of directPlaybackMode is nullptr.
Available since API-level: 19