nRF Connect SDK API 2.8.0
|
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.
[in] | input_left | Pointer to the input buffer for the left channel. |
[in] | input_right | Pointer to the input buffer for the right channel. |
[in] | input_size | Number of bytes in the input. Same for both channels. |
[in] | pcm_bit_depth | Bit depth of PCM samples (16, 24, or 32). |
[out] | output | Pointer to the output buffer. |
[out] | output_size | Number of bytes written to the output. |