nRF Connect SDK API 2.8.0
Loading...
Searching...
No Matches

◆ pscm_combine()

int pscm_combine ( void const *const input_left,
void const *const input_right,
size_t input_size,
uint8_t pcm_bit_depth,
void * output,
size_t * output_size )

#include <include/pcm_stream_channel_modifier.h>

Combines two mono streams into one stereo stream.

Parameters
[in]input_leftPointer to the input buffer for the left channel.
[in]input_rightPointer to the input buffer for the right channel.
[in]input_sizeNumber of bytes in the input. Same for both channels.
[in]pcm_bit_depthBit depth of PCM samples (16, 24, or 32).
[out]outputPointer to the output buffer.
[out]output_sizeNumber of bytes written to the output.
Returns
0 if success.