nRF Connect SDK API 2.8.99
|
int pscm_zero_pad | ( | 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>
Adds a 0 after every sample from *input and writes it to *output.
[in] | input | Pointer to the input buffer. |
[in] | input_size | Number of bytes in input. |
[in] | channel | Channel to contain the audio data. |
[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. |