pub unsafe extern "C" fn OH_AudioStreamBuilder_SetEncodingType(
builder: *mut OH_AudioStreamBuilder,
encodingType: OH_AudioStream_EncodingType,
) -> OH_AudioStream_ResultExpand description
Set the encoding type of the stream client
Available since API-level: 10
§Arguments
-
builder- Reference provided by OH_AudioStreamBuilder_Create() -
encodingType- Encoding type for the stream client, [#AUDIOSTREAM_ENCODING_PCM]
§Returns
- Function result code:
[
AUDIOSTREAM_SUCCESS] If the execution is successful. [AUDIOSTREAM_ERROR_INVALID_PARAM] The param of builder is nullptr.