librfn
An ad-hoc utility library
|
#include <stdint.h>
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | rf_wavheader |
Macros | |
#define | RF_WAVHEADER_MIN_SIZE 44 |
Typedefs | |
typedef struct rf_wavheader | rf_wavheader_t |
Enumerations | |
enum | rf_wavheader_format_t { RF_WAVHEADER_UNKNOWN = -1, RF_WAVHEADER_S16LE, RF_WAVHEADER_S32LE, RF_WAVHEADER_FLOAT } |
Functions | |
int | rf_wavheader_decode (const uint8_t *p, unsigned int sz, rf_wavheader_t *wh) |
int | rf_wavheader_encode (rf_wavheader_t *wh, uint8_t *p, unsigned int sz) |
rf_wavheader_format_t | rf_wavheader_get_format (rf_wavheader_t *wh) |
void | rf_wavheader_init (rf_wavheader_t *wh, int sfreq, int num_channels, rf_wavheader_format_t format) |
void | rf_wavheader_set_num_frames (rf_wavheader_t *wh, unsigned int num_frames) |
char * | rf_wavheader_tostring (rf_wavheader_t *wh) |
int | rf_wavheader_validate (rf_wavheader_t *wh) |