blob: 731e336387247f2d6070fb80788b3e4292cbfe9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef __CODEC_H
#define __CODEC_H
#include <stdint.h>
typedef struct {
int bitsPerSample;
int channels;
int dataSize;
int samplesPerSecond;
} fileinfo_t;
typedef struct codec_s {
fileinfo_t info;
int (*init) (const char *fname);
void (*free) (void);
int (*read) (char *bytes, int size);
} codec_t;
codec_t *get_codec_for_file (const char *fname);
#endif // __CODEC_H
|