Go to the documentation of this file. 1 #ifndef OALPLUS_ALC_API_CONSTANTS_HPP
9 #define OALPLUS_ALC_API_CONSTANTS_HPP
20 template <
typename ApiTraits>
23 using enum_type =
typename alc_types::enum_type;
25 template <enum_type value>
26 using enum_type_c = std::integral_constant<enum_type, value>;
33 enum_type_c<ALC_NO_ERROR>>
43 #ifdef ALC_INVALID_DEVICE
44 enum_type_c<ALC_INVALID_DEVICE>>
54 #ifdef ALC_INVALID_CONTEXT
55 enum_type_c<ALC_INVALID_CONTEXT>>
65 #ifdef ALC_INVALID_ENUM
66 enum_type_c<ALC_INVALID_ENUM>>
76 #ifdef ALC_INVALID_VALUE
77 enum_type_c<ALC_INVALID_VALUE>>
87 #ifdef ALC_OUT_OF_MEMORY
88 enum_type_c<ALC_OUT_OF_MEMORY>>
98 #ifdef ALC_DEVICE_SPECIFIER
99 enum_type_c<ALC_DEVICE_SPECIFIER>>
109 #ifdef ALC_CAPTURE_DEVICE_SPECIFIER
110 enum_type_c<ALC_CAPTURE_DEVICE_SPECIFIER>>
120 #ifdef ALC_DEFAULT_DEVICE_SPECIFIER
121 enum_type_c<ALC_DEFAULT_DEVICE_SPECIFIER>>
131 #ifdef ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER
132 enum_type_c<ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER>>
152 #ifdef ALC_EXTENSIONS
153 enum_type_c<ALC_EXTENSIONS>>
163 #ifdef ALC_MAJOR_VERSION
164 enum_type_c<ALC_MAJOR_VERSION>>
174 #ifdef ALC_MINOR_VERSION
175 enum_type_c<ALC_MINOR_VERSION>>
185 #ifdef ALC_CAPTURE_SAMPLES
186 enum_type_c<ALC_CAPTURE_SAMPLES>>
197 enum_type_c<ALC_FREQUENCY>>
208 enum_type_c<ALC_REFRESH>>
219 enum_type_c<ALC_SYNC>>
229 #ifdef ALC_MONO_SOURCES
230 enum_type_c<ALC_MONO_SOURCES>>
240 #ifdef ALC_STEREO_SOURCES
241 enum_type_c<ALC_STEREO_SOURCES>>
267 #endif // OALPLUS_ALC_API_CONSTANTS_HPP
opt_c_api_constant< mp_list< alc_string_query >, enum_type_i > capture_default_device_specifier
Definition: constants.hpp:136
typename get_opt_c_api_constant< ClassList, Constant, Tag, IsIndexed >::type opt_c_api_constant
Template alias used for switching between static and dynamic constants.
Definition: c_api_wrap.hpp:175
Class wrapping the C-functions from the ALC API.
Definition: c_api.hpp:31
opt_c_api_constant< mp_list< alc_error_code >, enum_type_i > invalid_value
Definition: constants.hpp:81
const dynamic_c_api_constant< mp_list< context_attribute >, enum_type > hrtf_soft
Definition: constants.hpp:250
opt_c_api_constant< mp_list< alc_integer_query >, enum_type_i > capture_samples
Definition: constants.hpp:190
const dynamic_c_api_constant< mp_list< alc_string_query >, enum_type > default_all_devices_specifier
Definition: constants.hpp:146
opt_c_api_constant< mp_list< context_attribute >, enum_type_i > refresh
Definition: constants.hpp:212
opt_c_api_constant< mp_list< alc_error_code >, enum_type_i > invalid_device
Definition: constants.hpp:48
opt_c_api_constant< mp_list< context_attribute >, enum_type_i > stereo_sources
Definition: constants.hpp:245
opt_c_api_constant< mp_list< alc_integer_query >, enum_type_i > major_version
Definition: constants.hpp:168
opt_c_api_constant< mp_list< alc_integer_query >, enum_type_i > minor_version
Definition: constants.hpp:179
const dynamic_c_api_constant< mp_list< context_attribute >, enum_type > hrtf_id_soft
Definition: constants.hpp:255
opt_c_api_constant< mp_list< context_attribute >, enum_type_i > mono_sources
Definition: constants.hpp:234
opt_c_api_constant< mp_list< alc_string_query >, enum_type_i > capture_device_specifier
Definition: constants.hpp:114
opt_c_api_constant< mp_list< context_attribute >, enum_type_i > sync
Definition: constants.hpp:223
opt_c_api_constant< mp_list< alc_string_query >, enum_type_i > default_device_specifier
Definition: constants.hpp:125
opt_c_api_constant< mp_list< alc_string_query >, enum_type_i > extensions
Definition: constants.hpp:157
opt_c_api_constant< mp_list< alc_error_code >, enum_type_i > invalid_context
Definition: constants.hpp:59
Class wrapping the constants from the ALC API.
Definition: constants.hpp:21
Class wrapping a constant with value loaded at run-time.
Definition: c_api_wrap.hpp:106
Compile-time type list template.
Definition: mp_list.hpp:20
Template type used mostly for function type-tag dispatching.
Definition: type_identity.hpp:19
const dynamic_c_api_constant< mp_list< alc_string_query >, enum_type > all_devices_specifier
Definition: constants.hpp:141
opt_c_api_constant< mp_list< alc_error_code >, enum_type_i > out_of_memory
Definition: constants.hpp:92
opt_c_api_constant< mp_list< alc_error_code >, enum_type_i > invalid_enum
Definition: constants.hpp:70
opt_c_api_constant< mp_list< alc_string_query >, enum_type_i > device_specifier
Definition: constants.hpp:103
AL-related code is placed in this namespace.
Definition: oalplus.hpp:11
opt_c_api_constant< mp_list< context_attribute >, enum_type_i > frequency
Definition: constants.hpp:201
opt_c_api_constant< mp_list< alc_error_code >, enum_type_i > no_error
Definition: constants.hpp:37
const dynamic_c_api_constant< mp_list< alc_string_query >, enum_type > hrtf_specifier_soft
Definition: constants.hpp:260