pub unsafe extern "C" fn OH_AudioStreamBuilder_SetSamplingRate(
builder: *mut OH_AudioStreamBuilder,
rate: i32,
) -> OH_AudioStream_ResultExpand description
Set the channel count of the capturer client
Available since API-level: 10
§Arguments
-
builder- Reference created by OH_AudioStreamBuilder -
rate- Pointer to a variable that will be set for the channel count.
§Returns
- Function result code:
[
AUDIOSTREAM_SUCCESS] If the execution is successful. [AUDIOSTREAM_ERROR_INVALID_PARAM]: 1.The param of builder is nullptr; 2.The param of rate invalid.