nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ LC3BitstreamBuffersize()

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.

Parameters
[in]sampleRateSample rate.
[in]maxBitRateSession's maximum encoding bit rate.
[in]frameSizeFrame size of 7.5 or 10 msec.
[out]resultPointer to an LC3 Return Code integer.
Returns
Bit stream buffer size on success or 0 on error.