1.1.3.6.8 DRV_GENERICCODEC_SamplingRateSet Function

void DRV_GENERICCODEC_SamplingRateSet(DRV_HANDLE handle, uint32_t samplingRate)

Summary

This function sets the sampling rate of the media stream.

Description

This function sets the media sampling rate for the client handle.

Preconditions

The DRV_GENERICCODEC_Initialize routine must have been called for the specified Generic Codec driver instance.

DRV_GENERICCODEC_Open must have been called to obtain a valid opened device handle.

Parameters

ParametersDescription
handleA valid open-instance handle, returned from the driver's open routine
samplingRateSampling frequency in Hz

Returns

None.

Remarks

None.

Example

_// myGENERICCODECHandle is the handle returned // by the DRV_GENERICCODEC_Open function._

DRV_GENERICCODEC_SamplingRateSet(myGENERICCODECHandle, 48000); _//Sets 48000 media sampling rate_

C

void DRV_GENERICCODEC_SamplingRateSet(DRV_HANDLE handle, uint32_t samplingRate);