2012-12-14 15:38:01 -08:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include <config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#ifdef HAVE_FEATURES_H
|
|
|
|
#include <features.h>
|
|
|
|
#endif
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
#include "ecore_audio_private.h"
|
|
|
|
|
|
|
|
int _ecore_audio_log_dom = -1;
|
|
|
|
static int _ecore_audio_init_count = 0;
|
2013-05-03 13:44:01 -07:00
|
|
|
Eina_List *ecore_audio_modules;
|
|
|
|
|
2016-07-31 22:37:10 -07:00
|
|
|
#ifdef HAVE_PULSE
|
|
|
|
Ecore_Audio_Lib_Pulse *ecore_audio_pulse_lib = NULL;
|
|
|
|
#endif /* HAVE_PULSE */
|
|
|
|
#ifdef HAVE_SNDFILE
|
|
|
|
Ecore_Audio_Lib_Sndfile *ecore_audio_sndfile_lib = NULL;
|
|
|
|
#endif /* HAVE_SNDFILE */
|
2012-12-14 15:38:01 -08:00
|
|
|
|
|
|
|
/* externally accessible functions */
|
|
|
|
|
ecore_audio: Rename EAPI macro to ECORE_AUDIO_API in Ecore Audio library
Summary:
Patch from a series of patches to rename EAPI symbols to specific
library DSOs.
= The Rationale =
This patch is from a series of patches to rename EAPI symbols to
specific library DSOs.
EAPI was designed to be able to pass
`__attribute__ ((visibility ("default")))` for symbols with
GCC, which would mean that even if -fvisibility=hidden was used
when compiling the library, the needed symbols would get exported.
MSVC __almost__ works like GCC (or mingw) in which you can
declare everything as export and it will just work (slower, but
it will work). But there's a caveat: global variables will not
work the same way for MSVC, but works for mingw and GCC.
For global variables (as opposed to functions), MSVC requires
correct DSO visibility for MSVC: instead of declaring a symbol as
export for everything, you need to declare it as import when
importing from another DSO and export when defining it locally.
With current EAPI definitions, we get the following example
working in mingw and MSVC (observe it doesn't define any global
variables as exported symbols).
Example 1:
dll1:
```
EAPI void foo(void);
EAPI void bar()
{
foo();
}
```
dll2:
```
EAPI void foo()
{
printf ("foo\n");
}
```
This works fine with API defined as __declspec(dllexport) in both
cases and for gcc defining as
`__atttribute__((visibility("default")))`.
However, the following:
Example 2:
dll1:
```
EAPI extern int foo;
EAPI void foobar(void);
EAPI void bar()
{
foo = 5;
foobar();
}
```
dll2:
```
EAPI int foo = 0;
EAPI void foobar()
{
printf ("foo %d\n", foo);
}
```
This will work on mingw but will not work for MSVC. And that's why
LIBAPI is the only solution that works for MSVC.
Co-authored-by: João Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>
Co-authored-by: Lucas Cavalcante de Sousa <lucks.sousa@gmail.com>
Co-authored-by: Ricardo Campos <ricardo.campos@expertise.dev>
Reviewers: vtorri, woohyun, lucas, jptiz
Reviewed By: vtorri, lucas
Subscribers: vtorri, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D12212
2020-12-15 06:31:27 -08:00
|
|
|
ECORE_AUDIO_API int
|
2012-12-14 15:38:01 -08:00
|
|
|
ecore_audio_init(void)
|
|
|
|
{
|
|
|
|
|
|
|
|
if (++_ecore_audio_init_count != 1)
|
|
|
|
return _ecore_audio_init_count;
|
|
|
|
|
|
|
|
if (!ecore_init())
|
|
|
|
return --_ecore_audio_init_count;
|
|
|
|
|
2016-08-15 06:44:41 -07:00
|
|
|
if (!efl_object_init()) {
|
2013-04-11 10:21:37 -07:00
|
|
|
ecore_shutdown();
|
|
|
|
return --_ecore_audio_init_count;
|
|
|
|
}
|
|
|
|
|
2012-12-14 15:38:01 -08:00
|
|
|
_ecore_audio_log_dom = eina_log_domain_register("ecore_audio", ECORE_AUDIO_DEFAULT_LOG_COLOR);
|
|
|
|
if (_ecore_audio_log_dom < 0)
|
|
|
|
{
|
|
|
|
EINA_LOG_ERR("Impossible to create a log domain for the ecore audio module.");
|
|
|
|
return --_ecore_audio_init_count;
|
|
|
|
}
|
|
|
|
|
|
|
|
DBG("Ecore_Audio init");
|
2013-05-03 13:44:01 -07:00
|
|
|
ecore_audio_modules = NULL;
|
|
|
|
|
2012-12-14 15:38:18 -08:00
|
|
|
|
2013-03-27 05:42:55 -07:00
|
|
|
eina_log_timing(_ecore_audio_log_dom,
|
|
|
|
EINA_LOG_STATE_STOP,
|
|
|
|
EINA_LOG_STATE_INIT);
|
|
|
|
|
2012-12-14 15:38:01 -08:00
|
|
|
return _ecore_audio_init_count;
|
|
|
|
}
|
|
|
|
|
ecore_audio: Rename EAPI macro to ECORE_AUDIO_API in Ecore Audio library
Summary:
Patch from a series of patches to rename EAPI symbols to specific
library DSOs.
= The Rationale =
This patch is from a series of patches to rename EAPI symbols to
specific library DSOs.
EAPI was designed to be able to pass
`__attribute__ ((visibility ("default")))` for symbols with
GCC, which would mean that even if -fvisibility=hidden was used
when compiling the library, the needed symbols would get exported.
MSVC __almost__ works like GCC (or mingw) in which you can
declare everything as export and it will just work (slower, but
it will work). But there's a caveat: global variables will not
work the same way for MSVC, but works for mingw and GCC.
For global variables (as opposed to functions), MSVC requires
correct DSO visibility for MSVC: instead of declaring a symbol as
export for everything, you need to declare it as import when
importing from another DSO and export when defining it locally.
With current EAPI definitions, we get the following example
working in mingw and MSVC (observe it doesn't define any global
variables as exported symbols).
Example 1:
dll1:
```
EAPI void foo(void);
EAPI void bar()
{
foo();
}
```
dll2:
```
EAPI void foo()
{
printf ("foo\n");
}
```
This works fine with API defined as __declspec(dllexport) in both
cases and for gcc defining as
`__atttribute__((visibility("default")))`.
However, the following:
Example 2:
dll1:
```
EAPI extern int foo;
EAPI void foobar(void);
EAPI void bar()
{
foo = 5;
foobar();
}
```
dll2:
```
EAPI int foo = 0;
EAPI void foobar()
{
printf ("foo %d\n", foo);
}
```
This will work on mingw but will not work for MSVC. And that's why
LIBAPI is the only solution that works for MSVC.
Co-authored-by: João Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>
Co-authored-by: Lucas Cavalcante de Sousa <lucks.sousa@gmail.com>
Co-authored-by: Ricardo Campos <ricardo.campos@expertise.dev>
Reviewers: vtorri, woohyun, lucas, jptiz
Reviewed By: vtorri, lucas
Subscribers: vtorri, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D12212
2020-12-15 06:31:27 -08:00
|
|
|
ECORE_AUDIO_API int
|
2012-12-14 15:38:01 -08:00
|
|
|
ecore_audio_shutdown(void)
|
|
|
|
{
|
|
|
|
DBG("Ecore_Audio shutdown");
|
|
|
|
if (--_ecore_audio_init_count != 0)
|
|
|
|
return _ecore_audio_init_count;
|
|
|
|
|
2016-07-31 22:37:10 -07:00
|
|
|
#ifdef HAVE_SNDFILE
|
2018-04-06 06:40:00 -07:00
|
|
|
// explicitly disabled - yes, we know to "fix a leak" you unload here, but
|
|
|
|
// objects may still exist at this point and may access functions/symbols
|
|
|
|
// from sndfile
|
2018-04-06 01:08:44 -07:00
|
|
|
// ecore_audio_sndfile_lib_unload();
|
2016-07-31 22:37:10 -07:00
|
|
|
#endif /* HAVE_SNDFILE */
|
|
|
|
#ifdef HAVE_PULSE
|
2018-04-06 06:40:00 -07:00
|
|
|
// explicitly disabled - yes, we know to "fix a leak" you unload here, but
|
|
|
|
// objects may still exist at this point and may access functions/symbols
|
|
|
|
// from pulseaudio
|
2018-04-06 01:08:44 -07:00
|
|
|
// ecore_audio_pulse_lib_unload();
|
2016-07-31 22:37:10 -07:00
|
|
|
#endif /* HAVE_PULSE */
|
|
|
|
|
2012-12-14 15:38:01 -08:00
|
|
|
/* FIXME: Shutdown all the inputs and outputs first */
|
2013-03-27 05:42:55 -07:00
|
|
|
eina_log_timing(_ecore_audio_log_dom,
|
|
|
|
EINA_LOG_STATE_START,
|
|
|
|
EINA_LOG_STATE_SHUTDOWN);
|
2012-12-14 15:38:01 -08:00
|
|
|
|
2012-12-14 15:38:08 -08:00
|
|
|
|
2013-05-03 13:44:01 -07:00
|
|
|
eina_list_free(ecore_audio_modules);
|
|
|
|
|
2012-12-14 15:38:01 -08:00
|
|
|
eina_log_domain_unregister(_ecore_audio_log_dom);
|
|
|
|
_ecore_audio_log_dom = -1;
|
|
|
|
|
2016-08-15 06:44:41 -07:00
|
|
|
efl_object_shutdown();
|
2012-12-14 15:38:01 -08:00
|
|
|
ecore_shutdown();
|
|
|
|
|
|
|
|
return _ecore_audio_init_count;
|
|
|
|
}
|
|
|
|
|
2016-07-31 22:37:10 -07:00
|
|
|
#ifdef HAVE_PULSE
|
|
|
|
Eina_Bool
|
|
|
|
ecore_audio_pulse_lib_load(void)
|
|
|
|
{
|
|
|
|
if (ecore_audio_pulse_lib)
|
|
|
|
{
|
2018-01-12 01:46:04 -08:00
|
|
|
if (!ecore_audio_pulse_lib->mod) return EINA_FALSE;
|
2016-07-31 22:37:10 -07:00
|
|
|
return EINA_TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
ecore_audio_pulse_lib = calloc(1, sizeof(Ecore_Audio_Lib_Pulse));
|
|
|
|
if (!ecore_audio_pulse_lib) return EINA_FALSE;
|
|
|
|
# define LOAD(x) \
|
|
|
|
if (!ecore_audio_pulse_lib->mod) { \
|
|
|
|
if ((ecore_audio_pulse_lib->mod = eina_module_new(x))) { \
|
|
|
|
if (!eina_module_load(ecore_audio_pulse_lib->mod)) { \
|
|
|
|
eina_module_free(ecore_audio_pulse_lib->mod); \
|
|
|
|
ecore_audio_pulse_lib->mod = NULL; \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
# if defined(_WIN32) || defined(__CYGWIN__)
|
|
|
|
LOAD("libpulse-0.dll");
|
|
|
|
LOAD("libpulse.dll");
|
|
|
|
LOAD("pulse.dll");
|
2016-08-01 19:23:34 -07:00
|
|
|
if (!ecore_audio_pulse_lib->mod)
|
|
|
|
ERR("Could not find libpulse-0.dll, libpulse.dll, pulse.dll");
|
2016-07-31 22:37:10 -07:00
|
|
|
# elif defined(__APPLE__) && defined(__MACH__)
|
|
|
|
LOAD("libpulse.0.dylib");
|
|
|
|
LOAD("libpulse.0.so");
|
|
|
|
LOAD("libpulse.so.0");
|
2016-08-01 19:23:34 -07:00
|
|
|
if (!ecore_audio_pulse_lib->mod)
|
|
|
|
ERR("Could not find libpulse.0.dylib, libpulse.0.so, libpulse.so.0");
|
2016-07-31 22:37:10 -07:00
|
|
|
# else
|
|
|
|
LOAD("libpulse.so.0");
|
2016-08-01 19:23:34 -07:00
|
|
|
if (!ecore_audio_pulse_lib->mod)
|
|
|
|
ERR("Could not find libpulse.so.0");
|
2016-07-31 22:37:10 -07:00
|
|
|
# endif
|
|
|
|
# undef LOAD
|
|
|
|
if (!ecore_audio_pulse_lib->mod) return EINA_FALSE;
|
|
|
|
|
|
|
|
#define SYM(x) \
|
|
|
|
if (!(ecore_audio_pulse_lib->x = eina_module_symbol_get(ecore_audio_pulse_lib->mod, #x))) { \
|
2016-08-01 19:23:34 -07:00
|
|
|
ERR("Cannot find symbol '%s' in'%s", #x, eina_module_file_get(ecore_audio_pulse_lib->mod)); \
|
2016-07-31 22:37:10 -07:00
|
|
|
goto err; \
|
|
|
|
}
|
|
|
|
SYM(pa_context_new);
|
2020-03-17 09:03:52 -07:00
|
|
|
SYM(pa_context_unref);
|
2016-07-31 22:37:10 -07:00
|
|
|
SYM(pa_context_connect);
|
|
|
|
SYM(pa_context_set_sink_input_volume);
|
|
|
|
SYM(pa_context_get_state);
|
|
|
|
SYM(pa_context_set_state_callback);
|
|
|
|
SYM(pa_operation_unref);
|
|
|
|
SYM(pa_cvolume_set);
|
|
|
|
SYM(pa_stream_new);
|
|
|
|
SYM(pa_stream_unref);
|
|
|
|
SYM(pa_stream_connect_playback);
|
|
|
|
SYM(pa_stream_disconnect);
|
|
|
|
SYM(pa_stream_drain);
|
2020-03-17 09:03:52 -07:00
|
|
|
SYM(pa_stream_flush);
|
2016-07-31 22:37:10 -07:00
|
|
|
SYM(pa_stream_cork);
|
|
|
|
SYM(pa_stream_write);
|
|
|
|
SYM(pa_stream_begin_write);
|
|
|
|
SYM(pa_stream_set_write_callback);
|
|
|
|
SYM(pa_stream_trigger);
|
|
|
|
SYM(pa_stream_update_sample_rate);
|
|
|
|
SYM(pa_stream_get_index);
|
|
|
|
#undef SYM
|
|
|
|
return EINA_TRUE;
|
|
|
|
err:
|
|
|
|
if (ecore_audio_pulse_lib->mod)
|
|
|
|
{
|
|
|
|
eina_module_free(ecore_audio_pulse_lib->mod);
|
|
|
|
ecore_audio_pulse_lib->mod = NULL;
|
2018-01-12 01:46:04 -08:00
|
|
|
ERR("Cannot find libpulse at runtime!");
|
2016-07-31 22:37:10 -07:00
|
|
|
}
|
|
|
|
return EINA_FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
ecore_audio_pulse_lib_unload(void)
|
|
|
|
{
|
|
|
|
if (ecore_audio_pulse_lib)
|
|
|
|
{
|
|
|
|
if (ecore_audio_pulse_lib->mod)
|
|
|
|
eina_module_free(ecore_audio_pulse_lib->mod);
|
|
|
|
free(ecore_audio_pulse_lib);
|
|
|
|
ecore_audio_pulse_lib = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif /* HAVE_PULSE */
|
|
|
|
|
|
|
|
#ifdef HAVE_SNDFILE
|
|
|
|
Eina_Bool
|
|
|
|
ecore_audio_sndfile_lib_load(void)
|
|
|
|
{
|
|
|
|
if (ecore_audio_sndfile_lib)
|
|
|
|
{
|
2018-01-12 01:46:04 -08:00
|
|
|
if (!ecore_audio_sndfile_lib->mod) return EINA_FALSE;
|
2016-07-31 22:37:10 -07:00
|
|
|
return EINA_TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
ecore_audio_sndfile_lib = calloc(1, sizeof(Ecore_Audio_Lib_Sndfile));
|
|
|
|
if (!ecore_audio_sndfile_lib) return EINA_FALSE;
|
|
|
|
# define LOAD(x) \
|
|
|
|
if (!ecore_audio_sndfile_lib->mod) { \
|
|
|
|
if ((ecore_audio_sndfile_lib->mod = eina_module_new(x))) { \
|
|
|
|
if (!eina_module_load(ecore_audio_sndfile_lib->mod)) { \
|
|
|
|
eina_module_free(ecore_audio_sndfile_lib->mod); \
|
|
|
|
ecore_audio_sndfile_lib->mod = NULL; \
|
|
|
|
} \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
# if defined(_WIN32) || defined(__CYGWIN__)
|
|
|
|
LOAD("libsndfile-1.dll");
|
|
|
|
LOAD("libsndfile.dll");
|
|
|
|
LOAD("sndfile.dll");
|
|
|
|
# elif defined(__APPLE__) && defined(__MACH__)
|
|
|
|
LOAD("libsndfile.1.dylib");
|
|
|
|
LOAD("libsndfile.1.so");
|
|
|
|
LOAD("libsndfile.so.1");
|
|
|
|
# else
|
|
|
|
LOAD("libsndfile.so.1");
|
|
|
|
# endif
|
|
|
|
# undef LOAD
|
|
|
|
if (!ecore_audio_sndfile_lib->mod) return EINA_FALSE;
|
|
|
|
|
|
|
|
#define SYM(x) \
|
|
|
|
if (!(ecore_audio_sndfile_lib->x = eina_module_symbol_get(ecore_audio_sndfile_lib->mod, #x))) { \
|
2016-08-02 12:08:58 -07:00
|
|
|
ERR("Cannot find symbol '%s' in'%s", #x, eina_module_file_get(ecore_audio_sndfile_lib->mod)); \
|
2016-07-31 22:37:10 -07:00
|
|
|
goto err; \
|
|
|
|
}
|
|
|
|
SYM(sf_open);
|
|
|
|
SYM(sf_open_virtual);
|
|
|
|
SYM(sf_close);
|
|
|
|
SYM(sf_read_float);
|
|
|
|
SYM(sf_write_float);
|
|
|
|
SYM(sf_write_sync);
|
|
|
|
SYM(sf_seek);
|
|
|
|
SYM(sf_strerror);
|
|
|
|
#undef SYM
|
|
|
|
return EINA_TRUE;
|
|
|
|
err:
|
|
|
|
if (ecore_audio_sndfile_lib->mod)
|
|
|
|
{
|
|
|
|
eina_module_free(ecore_audio_sndfile_lib->mod);
|
|
|
|
ecore_audio_sndfile_lib->mod = NULL;
|
2018-01-12 01:46:04 -08:00
|
|
|
ERR("Cannot find libsndfile at runtime!");
|
2016-07-31 22:37:10 -07:00
|
|
|
}
|
|
|
|
return EINA_FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
ecore_audio_sndfile_lib_unload(void)
|
|
|
|
{
|
|
|
|
if (ecore_audio_sndfile_lib)
|
|
|
|
{
|
|
|
|
if (ecore_audio_sndfile_lib->mod)
|
|
|
|
eina_module_free(ecore_audio_sndfile_lib->mod);
|
|
|
|
free(ecore_audio_sndfile_lib);
|
|
|
|
ecore_audio_sndfile_lib = NULL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif /* HAVE_SNDFILE */
|
2012-12-14 15:38:18 -08:00
|
|
|
|
2018-06-19 06:44:35 -07:00
|
|
|
|
ecore_audio: Rename EAPI macro to ECORE_AUDIO_API in Ecore Audio library
Summary:
Patch from a series of patches to rename EAPI symbols to specific
library DSOs.
= The Rationale =
This patch is from a series of patches to rename EAPI symbols to
specific library DSOs.
EAPI was designed to be able to pass
`__attribute__ ((visibility ("default")))` for symbols with
GCC, which would mean that even if -fvisibility=hidden was used
when compiling the library, the needed symbols would get exported.
MSVC __almost__ works like GCC (or mingw) in which you can
declare everything as export and it will just work (slower, but
it will work). But there's a caveat: global variables will not
work the same way for MSVC, but works for mingw and GCC.
For global variables (as opposed to functions), MSVC requires
correct DSO visibility for MSVC: instead of declaring a symbol as
export for everything, you need to declare it as import when
importing from another DSO and export when defining it locally.
With current EAPI definitions, we get the following example
working in mingw and MSVC (observe it doesn't define any global
variables as exported symbols).
Example 1:
dll1:
```
EAPI void foo(void);
EAPI void bar()
{
foo();
}
```
dll2:
```
EAPI void foo()
{
printf ("foo\n");
}
```
This works fine with API defined as __declspec(dllexport) in both
cases and for gcc defining as
`__atttribute__((visibility("default")))`.
However, the following:
Example 2:
dll1:
```
EAPI extern int foo;
EAPI void foobar(void);
EAPI void bar()
{
foo = 5;
foobar();
}
```
dll2:
```
EAPI int foo = 0;
EAPI void foobar()
{
printf ("foo %d\n", foo);
}
```
This will work on mingw but will not work for MSVC. And that's why
LIBAPI is the only solution that works for MSVC.
Co-authored-by: João Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>
Co-authored-by: Lucas Cavalcante de Sousa <lucks.sousa@gmail.com>
Co-authored-by: Ricardo Campos <ricardo.campos@expertise.dev>
Reviewers: vtorri, woohyun, lucas, jptiz
Reviewed By: vtorri, lucas
Subscribers: vtorri, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D12212
2020-12-15 06:31:27 -08:00
|
|
|
ECORE_AUDIO_API const char*
|
2018-06-19 09:31:32 -07:00
|
|
|
ecore_audio_obj_name_get(const Efl_Object* obj)
|
2018-06-19 06:44:35 -07:00
|
|
|
{
|
|
|
|
return efl_name_get(obj);
|
|
|
|
}
|
|
|
|
|
ecore_audio: Rename EAPI macro to ECORE_AUDIO_API in Ecore Audio library
Summary:
Patch from a series of patches to rename EAPI symbols to specific
library DSOs.
= The Rationale =
This patch is from a series of patches to rename EAPI symbols to
specific library DSOs.
EAPI was designed to be able to pass
`__attribute__ ((visibility ("default")))` for symbols with
GCC, which would mean that even if -fvisibility=hidden was used
when compiling the library, the needed symbols would get exported.
MSVC __almost__ works like GCC (or mingw) in which you can
declare everything as export and it will just work (slower, but
it will work). But there's a caveat: global variables will not
work the same way for MSVC, but works for mingw and GCC.
For global variables (as opposed to functions), MSVC requires
correct DSO visibility for MSVC: instead of declaring a symbol as
export for everything, you need to declare it as import when
importing from another DSO and export when defining it locally.
With current EAPI definitions, we get the following example
working in mingw and MSVC (observe it doesn't define any global
variables as exported symbols).
Example 1:
dll1:
```
EAPI void foo(void);
EAPI void bar()
{
foo();
}
```
dll2:
```
EAPI void foo()
{
printf ("foo\n");
}
```
This works fine with API defined as __declspec(dllexport) in both
cases and for gcc defining as
`__atttribute__((visibility("default")))`.
However, the following:
Example 2:
dll1:
```
EAPI extern int foo;
EAPI void foobar(void);
EAPI void bar()
{
foo = 5;
foobar();
}
```
dll2:
```
EAPI int foo = 0;
EAPI void foobar()
{
printf ("foo %d\n", foo);
}
```
This will work on mingw but will not work for MSVC. And that's why
LIBAPI is the only solution that works for MSVC.
Co-authored-by: João Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com>
Co-authored-by: Lucas Cavalcante de Sousa <lucks.sousa@gmail.com>
Co-authored-by: Ricardo Campos <ricardo.campos@expertise.dev>
Reviewers: vtorri, woohyun, lucas, jptiz
Reviewed By: vtorri, lucas
Subscribers: vtorri, cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D12212
2020-12-15 06:31:27 -08:00
|
|
|
ECORE_AUDIO_API void
|
2018-06-19 09:31:32 -07:00
|
|
|
ecore_audio_obj_name_set(Efl_Object* obj, const char *name)
|
2018-06-19 06:44:35 -07:00
|
|
|
{
|
|
|
|
efl_name_set(obj, name);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-12-14 15:38:01 -08:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|