![]() |
nrfxlib API 3.3.99
|
| uint16_t LC3PCMBuffersize | ( | uint16_t | sampleRate, |
| uint8_t | bitDepth, | ||
| LC3FrameSize_t | frameSize, | ||
| int32_t * | result ) |
#include <lc3/codec/inc/LC3API.h>
Calculates the buffer size required for PCM data.
Returns the minimum buffer size in bytes needed to hold a frame of PCM data for the specified sample rate and bit depth. A bitDepth value in the range (16,24] uses a 3 byte/sample PCM output while (24,32] uses 4 bytes/sample.
| [in] | sampleRate | Sample rate. |
| [in] | bitDepth | Bit depth of generated PCM data. |
| [in] | frameSize | Frame size of 7.5 or 10 msec. |
| [out] | result | Pointer to an LC3 Return Code integer. |