OH_AudioRenderer_GetEncodingType

Function OH_AudioRenderer_GetEncodingType 

Source
pub unsafe extern "C" fn OH_AudioRenderer_GetEncodingType(
    renderer: *mut OH_AudioRenderer,
    encodingType: *mut OH_AudioStream_EncodingType,
) -> OH_AudioStream_Result
Expand description

Query the encoding type of the renderer client.

@since 10

@param renderer Reference created by OH_AudioStreamBuilder_GenerateRenderer() @param encodingType Pointer to a variable that will be set for the encoding type. @return Function result code: {@link AUDIOSTREAM_SUCCESS} If the execution is successful. {@link AUDIOSTREAM_ERROR_INVALID_PARAM} The param of renderer is nullptr.