summaryrefslogtreecommitdiff
path: root/src/lib/ecore_audio/Ecore_Audio.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_audio/Ecore_Audio.h')
-rw-r--r--src/lib/ecore_audio/Ecore_Audio.h50
1 files changed, 36 insertions, 14 deletions
diff --git a/src/lib/ecore_audio/Ecore_Audio.h b/src/lib/ecore_audio/Ecore_Audio.h
index 0cc7bec..e508c9a 100644
--- a/src/lib/ecore_audio/Ecore_Audio.h
+++ b/src/lib/ecore_audio/Ecore_Audio.h
@@ -8,15 +8,27 @@
8#undef EAPI 8#undef EAPI
9#endif 9#endif
10 10
11#ifdef __GNUC__ 11#ifdef _WIN32
12#if __GNUC__ >= 4 12# ifdef EFL_ECORE_AUDIO_BUILD
13#define EAPI __attribute__ ((visibility("default"))) 13# ifdef DLL_EXPORT
14# define EAPI __declspec(dllexport)
15# else
16# define EAPI
17# endif /* ! DLL_EXPORT */
18# else
19# define EAPI __declspec(dllimport)
20# endif /* ! EFL_ECORE_AUDIO_BUILD */
14#else 21#else
15#define EAPI 22# ifdef __GNUC__
16#endif 23# if __GNUC__ >= 4
17#else 24# define EAPI __attribute__ ((visibility("default")))
18#define EAPI 25# else
19#endif 26# define EAPI
27# endif
28# else
29# define EAPI
30# endif
31#endif /* ! _WIN32 */
20 32
21/** 33/**
22 * @file Ecore_Audio.h 34 * @file Ecore_Audio.h
@@ -46,6 +58,7 @@ enum _Ecore_Audio_Type {
46 ECORE_AUDIO_TYPE_TONE, /**< Use tone module */ 58 ECORE_AUDIO_TYPE_TONE, /**< Use tone module */
47 ECORE_AUDIO_TYPE_CORE_AUDIO, /**< Use Core Audio module (Apple) - DEPRECATED */ 59 ECORE_AUDIO_TYPE_CORE_AUDIO, /**< Use Core Audio module (Apple) - DEPRECATED */
48 ECORE_AUDIO_TYPE_CUSTOM, /**< Use custom module */ 60 ECORE_AUDIO_TYPE_CUSTOM, /**< Use custom module */
61 ECORE_AUDIO_TYPE_WASAPI, /**< Use Wasapi module @since 1.21*/
49 ECORE_AUDIO_MODULE_LAST, /**< Sentinel */ 62 ECORE_AUDIO_MODULE_LAST, /**< Sentinel */
50}; 63};
51 64
@@ -179,11 +192,6 @@ EAPI int ecore_audio_init(void);
179 */ 192 */
180EAPI int ecore_audio_shutdown(void); 193EAPI int ecore_audio_shutdown(void);
181 194
182
183#ifdef __cplusplus
184}
185#endif
186
187#include <ecore_audio_obj.h> 195#include <ecore_audio_obj.h>
188#include <ecore_audio_obj_in.h> 196#include <ecore_audio_obj_in.h>
189#include <ecore_audio_obj_out.h> 197#include <ecore_audio_obj_out.h>
@@ -193,12 +201,26 @@ EAPI int ecore_audio_shutdown(void);
193 201
194#include <ecore_audio_obj_in_tone.h> 202#include <ecore_audio_obj_in_tone.h>
195 203
196#include <ecore_audio_obj_out_pulse.h> 204#if HAVE_PULSE
205# include <ecore_audio_obj_out_pulse.h>
206# define ECORE_AUDIO_OUT_RENDER_CLASS ECORE_AUDIO_OUT_PULSE_CLASS
207# define ECORE_AUDIO_OUT_RENDER_EVENT_CONTEXT_FAIL ECORE_AUDIO_OUT_PULSE_EVENT_CONTEXT_FAIL
208#endif
209
210#if HAVE_WASAPI
211# include <ecore_audio_obj_out_wasapi.h>
212# define ECORE_AUDIO_OUT_RENDER_CLASS ECORE_AUDIO_OUT_WASAPI_CLASS
213# define ECORE_AUDIO_OUT_RENDER_EVENT_CONTEXT_FAIL ECORE_AUDIO_OUT_WASAPI_EVENT_CONTEXT_FAIL
214#endif
197 215
198/** 216/**
199 * @} 217 * @}
200 */ 218 */
201 219
220#ifdef __cplusplus
221}
222#endif
223
202#undef EAPI 224#undef EAPI
203#define EAPI 225#define EAPI
204 226