![]() |
nRF Connect SDK API 3.3.99
|
| int pscm_interleave | ( | void const *const | input, |
| size_t | input_size, | ||
| uint8_t | channel, | ||
| uint8_t | pcm_bit_depth, | ||
| void * | output, | ||
| size_t | output_size, | ||
| uint8_t | output_channels ) |
#include <include/pcm_stream_channel_modifier.h>
Interleave a channel into a buffer of N channels of PCM.
| [in] | input | Pointer to the channel input buffer. Should be 4-bytes aligned. |
| [in] | input_size | Number of bytes in input. |
| [in] | channel | Channel to interleave into. |
| [in] | pcm_bit_depth | Bit depth of PCM samples (8, 16, 24, or 32). |
| [out] | output | Pointer to the multi-channel output buffer. Should be 4-bytes aligned. |
| [in] | output_size | Number of bytes in output. Must be at least (input_size * output_channels). |
| [in] | output_channels | Number of channels in the output buffer. |