OI_CODEC_SBC_DecodeRaw() function
Decode one SBC frame. The frame has no header bytes. The context must have been previously initialized by calling OI_CODEC_SBC_DecoderConfigureRaw().
Arguments
context
Pointer to a decoder context structure. The same context must be used each time when decoding from the same stream.
bitpool
The actual bitpool size for this frame. Must be <= the maxbitpool specified in the call to OI_CODEC_SBC_DecoderConfigureRaw(),
frameData
Address of a pointer to the SBC data to decode. This value will be updated to point to the next frame after successful decoding.
frameBytes
Pointer to a UINT32 containing the number of available bytes of frame data. This value will be updated to reflect the number of bytes remaining after a decoding operation.
pcmData
Address of an array of OI_INT16 pairs, which will be populated with the decoded audio data. This address is not updated.
pcmBytes
Pointer to a UINT32 in/out parameter. On input, it should contain the number of bytes available for pcm data. On output, it will contain the number of bytes written. Note that this differs from the semantics of frameBytes.