Go to the source code of this file.
|
| 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...
|
| |
| 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, |
|
|
GError ** |
error_r |
|
) |
| |
Converts PCM data between two audio formats.
- Parameters
-
| 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 |
| error_r | location to store the error occuring, or NULL to ignore errors |
- Returns
- the destination buffer, or NULL on error
| static GQuark pcm_convert_quark |
( |
void |
| ) |
|
|
inlinestatic |