nRF Connect SDK API 0.1.0
|
int pscm_one_channel_split | ( | void const *const | input, |
size_t | input_size, | ||
enum audio_channel | channel, | ||
uint8_t | pcm_bit_depth, | ||
void * | output, | ||
size_t * | output_size | ||
) |
#include <include/pcm_stream_channel_modifier.h>
Removes every second sample from *input and writes it to *output.
[in] | input | Pointer to the input buffer. |
[in] | input_size | Number of bytes in the input. Must be divisible by two. |
[in] | channel | Channel to keep the audio data from. |
[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. |