#include "pcm_resample.h"#include "pcm_dither.h"#include "pcm_buffer.h"Go to the source code of this file.
Data Structures | |
| struct | pcm_convert_state |
| This object is statically allocated (within another struct), and holds buffer allocations and the state for all kinds of PCM conversions. More... | |
Functions | |
| void | pcm_convert_init (struct pcm_convert_state *state) |
| Initializes a pcm_convert_state object. | |
| void | pcm_convert_deinit (struct pcm_convert_state *state) |
| Deinitializes a pcm_convert_state object and frees allocated memory. | |
| const void * | pcm_convert (struct pcm_convert_state *state, const struct audio_format *src_format, const void *src, size_t src_size, const struct audio_format *dest_format, size_t *dest_size_r) |
| Converts PCM data between two audio formats. | |
| const void* pcm_convert | ( | struct pcm_convert_state * | state, | |
| const struct audio_format * | src_format, | |||
| const void * | src, | |||
| size_t | src_size, | |||
| const struct audio_format * | dest_format, | |||
| size_t * | dest_size_r | |||
| ) |
Converts PCM data between two audio formats.
| state | an initialized pcm_convert_state object | |
| src_format | the source audio format | |
| src | the source PCM buffer | |
| src_size | the size of src in bytes | |
| dest_format | the requested destination audio format | |
| dest_size_r | returns the number of bytes of the destination buffer |
| void pcm_convert_deinit | ( | struct pcm_convert_state * | state | ) |
Deinitializes a pcm_convert_state object and frees allocated memory.
| void pcm_convert_init | ( | struct pcm_convert_state * | state | ) |
Initializes a pcm_convert_state object.
1.5.9