1.1.4.6.4 DRV_WM8904_SamplingRateSet Function

void DRV_WM8904_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_WM8904_Initialize routine must have been called for the specified WM8904 driver instance.

DRV_WM8904_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

_// myWM8904Handle is the handle returned // by the DRV_WM8904_Open function._

DRV_WM8904_SamplingRateSet(myWM8904Handle, 48000); _//Sets 48000 media sampling rate_

C

void DRV_WM8904_SamplingRateSet(DRV_HANDLE handle, uint32_t samplingRate);