summaryrefslogtreecommitdiff
path: root/src/c_portadao.h
blob: 9bcd3be581d71847aaae01d930cd3857fe12a207 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94


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


#ifndef PORTADAO_GUARD
#define PORTADAO_GUARD

#include <portaudio.h>


extern const int pa_no_error;
extern const int pa_not_initialized;
extern const int pa_unanticipated_host_error;
extern const int pa_invalid_channel_count;
extern const int pa_invalid_sample_rate;
extern const int pa_invalid_device;
extern const int pa_invalid_flag;
extern const int pa_sample_format_not_supported;
extern const int pa_bad_io_device_combination;
extern const int pa_insufficient_memory;
extern const int pa_buffer_too_big;
extern const int pa_buffer_too_small;
extern const int pa_null_callback;
extern const int pa_bad_stream_ptr;
extern const int pa_timed_out;
extern const int pa_internal_error;
extern const int pa_device_unavailable;
extern const int pa_incompatible_host_api_specific_stream_info;
extern const int pa_stream_is_stopped;
extern const int pa_stream_is_not_stopped;
extern const int pa_input_overflowed;
extern const int pa_output_underflowed;
extern const int pa_host_api_not_found;
extern const int pa_invalid_host_api;
extern const int pa_cannot_read_from_a_callback_stream;
extern const int pa_cannot_write_to_a_callback_stream;
extern const int pa_cannot_read_from_an_output_only_stream;
extern const int pa_cannot_write_to_an_input_only_stream;
extern const int pa_incompatible_stream_host_api;
extern const int pa_bad_buffer_ptr;

extern const int pa_in_development;
extern const int pa_direct_sound;
extern const int pa_mme;
extern const int pa_asio;
extern const int pa_sound_manager;
extern const int pa_core_audio;
extern const int pa_oss;
extern const int pa_alsa;
extern const int pa_al;
extern const int pa_beos;
extern const int pa_wdmks;
extern const int pa_jack;
extern const int pa_wasapi;
extern const int pa_audio_science_hpi;
extern const int pa_sndio;

extern const int pa_no_device;

extern const unsigned long pa_float_32;
extern const unsigned long pa_int_32;
extern const unsigned long pa_int_24;
extern const unsigned long pa_int_16;
extern const unsigned long pa_int_8;
extern const unsigned long pa_uint_8;

extern const int pa_format_is_supported;

extern const unsigned long pa_no_flag;
extern const unsigned long pa_clip_off;
extern const unsigned long pa_dither_off;
extern const unsigned long pa_never_drop_input;
extern const unsigned long pa_prime_output_buffers_using_stream_callback;

extern const int pa_continue;
extern const int pa_complete;
extern const int pa_abort;

extern const unsigned long pa_input_underflow;
extern const unsigned long pa_input_overflow;
extern const unsigned long pa_output_underflow;
extern const unsigned long pa_output_overflow;
extern const unsigned long pa_priming_output;


int apa_init(int msg);
int apa_term();


#endif