From 543cd19ab514ec632d965acd5177c5bf6695520f Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Sat, 15 Jul 2023 20:18:26 +1200 Subject: Initial commit --- src/c_portadao.h | 94 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 src/c_portadao.h (limited to 'src/c_portadao.h') diff --git a/src/c_portadao.h b/src/c_portadao.h new file mode 100644 index 0000000..9bcd3be --- /dev/null +++ b/src/c_portadao.h @@ -0,0 +1,94 @@ + + +// Programmed by Jedidiah Barber +// Released into the public domain + + +#ifndef PORTADAO_GUARD +#define PORTADAO_GUARD + +#include + + +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 + + -- cgit