nRF Connect SDK API 2.8.0
|
int pscm_two_channel_split | ( | void const *const | input, |
size_t | input_size, | ||
uint8_t | pcm_bit_depth, | ||
void * | output_left, | ||
void * | output_right, | ||
size_t * | output_size ) |
#include <include/pcm_stream_channel_modifier.h>
Splits a stereo stream to two separate mono streams.
[in] | input | Pointer to the input buffer. |
[in] | input_size | Number of bytes in input. Must be divisible by two. |
[in] | pcm_bit_depth | Bit depth of PCM samples (16, 24, or 32). |
[out] | output_left | Pointer to the output buffer containing the left channel. |
[out] | output_right | Pointer to the output buffer containing the right channel. |
[out] | output_size | Number of bytes written to the output, same for both channels. |