#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
|
const int16_t * | pcm_byteswap_16 (struct pcm_buffer *buffer, const int16_t *src, size_t len) |
| Changes the endianness of 16 bit PCM data.
|
|
const int32_t * | pcm_byteswap_32 (struct pcm_buffer *buffer, const int32_t *src, size_t len) |
| Changes the endianness of 32-bit (or 24-bit) PCM data.
|
|
const int16_t* pcm_byteswap_16 |
( |
struct pcm_buffer * |
buffer, |
|
|
const int16_t * |
src, |
|
|
size_t |
len |
|
) |
| |
Changes the endianness of 16 bit PCM data.
- Parameters
-
buffer | the destination pcm_buffer object |
src | the source PCM buffer |
src_size | the number of bytes in #src |
- Returns
- the destination buffer
const int32_t* pcm_byteswap_32 |
( |
struct pcm_buffer * |
buffer, |
|
|
const int32_t * |
src, |
|
|
size_t |
len |
|
) |
| |
Changes the endianness of 32-bit (or 24-bit) PCM data.
- Parameters
-
buffer | the destination pcm_buffer object |
src | the source PCM buffer |
src_size | the number of bytes in #src |
- Returns
- the destination buffer