OH_AudioStreamBuilder_SetEncodingType

Function OH_AudioStreamBuilder_SetEncodingType 

Source
pub unsafe extern "C" fn OH_AudioStreamBuilder_SetEncodingType(
    builder: *mut OH_AudioStreamBuilder,
    encodingType: OH_AudioStream_EncodingType,
) -> OH_AudioStream_Result
Expand description

Set the encoding type of the stream client

@since 10

@param builder Reference provided by OH_AudioStreamBuilder_Create() @param encodingType Encoding type for the stream client, {@link #AUDIOSTREAM_ENCODING_PCM} @return Function result code: {@link AUDIOSTREAM_SUCCESS} If the execution is successful. {@link AUDIOSTREAM_ERROR_INVALID_PARAM} The param of builder is nullptr.