#include "audio_format.h"
#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
Functions |
| 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.
|
| G_GNUC_MALLOC const void * | pcm_byteswap (struct pcm_buffer *buffer, enum sample_format format, const void *src, size_t size) |
| | Changes the endianness of PCM data.
|
Function Documentation
Changes the endianness of PCM data.
- Parameters:
-
| buffer | the destination pcm_buffer object |
| format | the sample format (both input and output) |
| src | the source PCM buffer |
| src_size | the number of bytes in #src |
- Returns:
- the destination buffer, or NULL if the sample format is not supported
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
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