nrfxlib API 0.1.0
|
uint16_t LC3BitstreamBuffersize | ( | uint16_t | sampleRate, |
uint32_t | maxBitRate, | ||
LC3FrameSize_t | frameSize, | ||
int32_t * | result | ||
) |
#include <lc3/codec/inc/LC3API.h>
Calculates the buffer size required for bit stream data.
Returns the minimum buffer size in bytes needed to hold a frame of bit stream data for the specified sample rate and bit rate.
The maxBitRate parameter is the maximum bitrate value that will be passed to LC3EncodeSessionData() at any point during the session's encoding.
[in] | sampleRate | Sample rate. |
[in] | maxBitRate | Session's maximum encoding bit rate. |
[in] | frameSize | Frame size of 7.5 or 10 msec. |
[out] | result | Pointer to an LC3 Return Code integer. |