summaryrefslogtreecommitdiff
path: root/src/c_aao.h
blob: 9e24cbcc749a9e04588d961d72f81ba1ab464250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54


//  Programmed by Jedidiah Barber
//  Released into the public domain


#ifndef AAO_GUARD
#define AAO_GUARD

#include <ao/ao.h>


extern const int type_live;
extern const int type_file;

extern const int sample_little_endian;
extern const int sample_big_endian;
extern const int sample_native_endian;

extern const int error_no_driver;
extern const int error_not_file;
extern const int error_not_live;
extern const int error_bad_option;
extern const int error_open_device;
extern const int error_open_file;
extern const int error_file_exists;
extern const int error_bad_format;
extern const int error_fail;


size_t c_pointer_size();


ao_info * info_item_get(ao_info ** items, int n);

int info_kind_get(ao_info * item);
char * info_name_get(ao_info * item);
char * info_short_name_get(ao_info * item);
int info_preferred_byte_format_get(ao_info * item);
int info_priority_get(ao_info * item);
char * info_comment_get(ao_info * item);
int info_option_count_get(ao_info * item);
char * info_option_key_get(ao_info * item, int n);

int get_errno();

char * option_key(ao_option * item);
char * option_value(ao_option * item);
ao_option * option_next(ao_option * item);


#endif