nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
pcm_stream_channel_modifier.h File Reference

PCM Stream Channel Modifier library header. More...

#include <zephyr/kernel.h>
#include <audio_defines.h>

Go to the source code of this file.

Functions

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)
 Adds a 0 after every sample from *input and writes it to *output.
 
int pscm_copy_pad (void const *const input, size_t input_size, uint8_t pcm_bit_depth, void *output, size_t *output_size)
 Adds a copy of every sample from *input and writes it to both channels in *output.
 
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)
 Combines two mono streams into one stereo stream.
 
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)
 Removes every second sample from *input and writes it to *output.
 
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)
 Splits a stereo stream to two separate mono streams.
 

Detailed Description

PCM Stream Channel Modifier library header.