1.1.2.6.11 DRV_AK4954_SamplingRateSet Function
void DRV_AK4954_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_AK4954_Initialize routine must have been called for the specified AK4954 driver instance.
DRV_AK4954_Open must have been called to obtain a valid opened device handle.
Parameters
Parameters | Description |
---|---|
handle | A valid open-instance handle, returned from the driver's open routine |
Returns
None.
Remarks
None.
Example
_\/\/ myAK4954Handle is the handle returned \/\/ by the DRV_AK4954_Open function._ DRV_AK4954_SamplingRateSet(myAK4954Handle, 48000); _\/\/Sets 48000 media sampling rate_
C
void DRV_AK4954_SamplingRateSet(DRV_HANDLE handle, uint32_t samplingRate);