2013-01-04 12:55:12 -08:00
|
|
|
if HAVE_ECORE_AUDIO
|
2012-12-14 15:38:25 -08:00
|
|
|
|
|
|
|
### Library
|
|
|
|
|
2014-10-02 08:52:45 -07:00
|
|
|
ecore_audio_eolian_files = \
|
|
|
|
lib/ecore_audio/ecore_audio.eo \
|
|
|
|
lib/ecore_audio/ecore_audio_in.eo \
|
|
|
|
lib/ecore_audio/ecore_audio_out.eo \
|
|
|
|
lib/ecore_audio/ecore_audio_in_sndfile.eo \
|
|
|
|
lib/ecore_audio/ecore_audio_out_sndfile.eo \
|
2016-09-03 07:25:17 -07:00
|
|
|
lib/ecore_audio/ecore_audio_out_pulse.eo \
|
ecore_audio: a minimal template for playing sound on WINDOWS is added
Summary:
Realization of audio data playback through WASAPI (Windows Audio Session API).(minimal)
WASAPI model:
1. Find a playback device (in the default system)
2. Register the client on the playback device.
3. Create a playback format for audio data.
4. Initialize the client with the created format, and access mode, ....
5. Take the object-rendering from the client for play the data stream.
6. Play data stream
ecore_audio model:
1. create a object for play the data stream(out object)
2. create a object to receive the data stream(in object)
3. register in the out-object the in-object
4. play data stream
Necessary:
Realize the ecore_audio object to play the data stream using the WASAPI model.
How implemented:
1. The object ecore_audio_out_wasapi is implemented
2. object ecore_audio_out_wasapi - the object constructor is find a playback device (in the default system)(WASAPI)
3. _ecore_audio_out_wasapi_ecore_audio_out_input_attach - register in the out-object the in-object
3.1 Register the client on the playback device.(WASAPI)
3.2 Create a playback format for audio data.(WASAPI)
3.3 Initialize the client with the created format, and access mode, ....(WASAPI)
4. _write_cb - play data
4.1 Take the object-rendering from the client for play the data stream.(WASAPI)
4.2 Play data stream(WASAPI)
Reviewers: cedric, vtorri, raster, an.kroitor, NikaWhite, FurryMyad, rimmed, t.naumenko, Jaehyun, bowonryu
Reviewed By: vtorri, NikaWhite
Subscribers: artem.popov, cedric, jpeg
Tags: #windows
Differential Revision: https://phab.enlightenment.org/D5029
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2017-10-03 11:21:07 -07:00
|
|
|
lib/ecore_audio/ecore_audio_in_tone.eo \
|
|
|
|
lib/ecore_audio/ecore_audio_out_wasapi.eo
|
2014-10-02 08:52:45 -07:00
|
|
|
|
2015-04-15 07:53:39 -07:00
|
|
|
|
2014-10-02 08:52:45 -07:00
|
|
|
ecore_audio_eolian_c = $(ecore_audio_eolian_files:%.eo=%.eo.c)
|
|
|
|
ecore_audio_eolian_h = $(ecore_audio_eolian_files:%.eo=%.eo.h)
|
|
|
|
|
2014-03-26 01:17:38 -07:00
|
|
|
BUILT_SOURCES += \
|
2014-10-02 08:52:45 -07:00
|
|
|
$(ecore_audio_eolian_c) \
|
|
|
|
$(ecore_audio_eolian_h)
|
|
|
|
|
2014-03-26 01:17:38 -07:00
|
|
|
ecore_audioeolianfilesdir = $(datadir)/eolian/include/ecore-@VMAJ@
|
2014-10-02 08:52:45 -07:00
|
|
|
ecore_audioeolianfiles_DATA = $(ecore_audio_eolian_files)
|
2014-03-26 01:17:38 -07:00
|
|
|
|
2016-06-08 01:26:06 -07:00
|
|
|
EXTRA_DIST2 += \
|
2014-03-26 01:17:38 -07:00
|
|
|
${ecore_audioeolianfiles_DATA}
|
|
|
|
|
2012-12-14 15:38:25 -08:00
|
|
|
lib_LTLIBRARIES += lib/ecore_audio/libecore_audio.la
|
|
|
|
|
2013-01-16 11:28:30 -08:00
|
|
|
installed_ecoreaudiomainheadersdir = $(includedir)/ecore-audio-@VMAJ@
|
2012-12-14 15:38:25 -08:00
|
|
|
dist_installed_ecoreaudiomainheaders_DATA = \
|
2013-04-11 10:21:37 -07:00
|
|
|
lib/ecore_audio/Ecore_Audio.h \
|
|
|
|
lib/ecore_audio/ecore_audio_obj.h \
|
|
|
|
lib/ecore_audio/ecore_audio_obj_in.h \
|
2013-04-12 09:40:31 -07:00
|
|
|
lib/ecore_audio/ecore_audio_obj_out.h \
|
2013-04-12 11:11:15 -07:00
|
|
|
lib/ecore_audio/ecore_audio_obj_in_tone.h \
|
2017-07-22 01:59:11 -07:00
|
|
|
lib/ecore_audio/ecore_audio_protected.h \
|
|
|
|
lib/ecore_audio/ecore_audio_obj_out_pulse.h \
|
|
|
|
lib/ecore_audio/ecore_audio_obj_in_sndfile.h \
|
|
|
|
lib/ecore_audio/ecore_audio_obj_out_sndfile.h
|
2013-04-11 10:21:37 -07:00
|
|
|
|
2014-10-02 08:52:45 -07:00
|
|
|
nodist_installed_ecoreaudiomainheaders_DATA = $(ecore_audio_eolian_h)
|
2015-04-15 07:53:39 -07:00
|
|
|
|
2012-12-14 15:38:25 -08:00
|
|
|
lib_ecore_audio_libecore_audio_la_SOURCES = \
|
|
|
|
lib/ecore_audio/ecore_audio.c \
|
2013-04-11 10:21:37 -07:00
|
|
|
lib/ecore_audio/ecore_audio_obj.c \
|
|
|
|
lib/ecore_audio/ecore_audio_obj_in.c \
|
|
|
|
lib/ecore_audio/ecore_audio_obj_out.c \
|
2013-04-12 11:11:15 -07:00
|
|
|
lib/ecore_audio/ecore_audio_obj_in_tone.c \
|
2012-12-14 15:38:25 -08:00
|
|
|
lib/ecore_audio/ecore_audio_private.h
|
|
|
|
|
2016-07-31 22:37:10 -07:00
|
|
|
lib_ecore_audio_libecore_audio_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl @ECORE_AUDIO_CFLAGS@ @ECORE_AUDIO_ALSA_CFLAGS@ @ECORE_AUDIO_PULSE_CFLAGS@ @ECORE_AUDIO_SNDFILE_CFLAGS@
|
|
|
|
lib_ecore_audio_libecore_audio_la_LIBADD = @ECORE_AUDIO_LIBS@ @ECORE_AUDIO_ALSA_LIBS@
|
2013-01-14 14:36:23 -08:00
|
|
|
lib_ecore_audio_libecore_audio_la_DEPENDENCIES = @ECORE_AUDIO_INTERNAL_LIBS@
|
2012-12-30 14:15:29 -08:00
|
|
|
lib_ecore_audio_libecore_audio_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
|
2013-01-04 12:55:12 -08:00
|
|
|
|
2013-04-19 05:39:02 -07:00
|
|
|
if HAVE_ECORE_AUDIO_PULSE
|
|
|
|
lib_ecore_audio_libecore_audio_la_SOURCES += \
|
|
|
|
lib/ecore_audio/ecore_audio_pulse_ml.c \
|
|
|
|
lib/ecore_audio/ecore_audio_obj_out_pulse.c
|
|
|
|
endif
|
|
|
|
|
ecore_audio: a minimal template for playing sound on WINDOWS is added
Summary:
Realization of audio data playback through WASAPI (Windows Audio Session API).(minimal)
WASAPI model:
1. Find a playback device (in the default system)
2. Register the client on the playback device.
3. Create a playback format for audio data.
4. Initialize the client with the created format, and access mode, ....
5. Take the object-rendering from the client for play the data stream.
6. Play data stream
ecore_audio model:
1. create a object for play the data stream(out object)
2. create a object to receive the data stream(in object)
3. register in the out-object the in-object
4. play data stream
Necessary:
Realize the ecore_audio object to play the data stream using the WASAPI model.
How implemented:
1. The object ecore_audio_out_wasapi is implemented
2. object ecore_audio_out_wasapi - the object constructor is find a playback device (in the default system)(WASAPI)
3. _ecore_audio_out_wasapi_ecore_audio_out_input_attach - register in the out-object the in-object
3.1 Register the client on the playback device.(WASAPI)
3.2 Create a playback format for audio data.(WASAPI)
3.3 Initialize the client with the created format, and access mode, ....(WASAPI)
4. _write_cb - play data
4.1 Take the object-rendering from the client for play the data stream.(WASAPI)
4.2 Play data stream(WASAPI)
Reviewers: cedric, vtorri, raster, an.kroitor, NikaWhite, FurryMyad, rimmed, t.naumenko, Jaehyun, bowonryu
Reviewed By: vtorri, NikaWhite
Subscribers: artem.popov, cedric, jpeg
Tags: #windows
Differential Revision: https://phab.enlightenment.org/D5029
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2017-10-03 11:21:07 -07:00
|
|
|
if HAVE_WIN32
|
|
|
|
dist_installed_ecoreaudiomainheaders_DATA+= \
|
|
|
|
lib/ecore_audio/ecore_audio_obj_out_wasapi.h
|
|
|
|
|
|
|
|
lib_ecore_audio_libecore_audio_la_SOURCES += \
|
|
|
|
lib/ecore_audio/ecore_audio_obj_out_wasapi.c
|
|
|
|
endif
|
|
|
|
|
2013-04-19 05:39:02 -07:00
|
|
|
if HAVE_ECORE_AUDIO_SNDFILE
|
|
|
|
lib_ecore_audio_libecore_audio_la_SOURCES += \
|
|
|
|
lib/ecore_audio/ecore_audio_obj_in_sndfile.c \
|
2013-04-26 10:17:03 -07:00
|
|
|
lib/ecore_audio/ecore_audio_obj_out_sndfile.c \
|
|
|
|
lib/ecore_audio/ecore_audio_sndfile_vio.c
|
2013-04-19 05:39:02 -07:00
|
|
|
endif
|
|
|
|
|
2015-04-15 07:53:39 -07:00
|
|
|
|
2014-10-06 03:32:25 -07:00
|
|
|
if HAVE_ELUA
|
|
|
|
|
|
|
|
ecore_audio_eolian_lua = $(ecore_audio_eolian_files:%.eo=%.eo.lua)
|
|
|
|
|
|
|
|
generated_ecore_audio_lua_all = $(ecore_audio_eolian_lua)
|
|
|
|
|
2016-06-21 07:13:17 -07:00
|
|
|
GENERATED_LUA_BINDINGS += $(generated_ecore_audio_lua_all)
|
2014-10-06 03:32:25 -07:00
|
|
|
|
|
|
|
installed_ecoreaudioluadir = $(datadir)/elua/modules/ecore_audio
|
|
|
|
nodist_installed_ecoreaudiolua_DATA = $(generated_ecore_audio_lua_all)
|
|
|
|
|
|
|
|
endif
|
2015-10-22 13:54:18 -07:00
|
|
|
|
2014-09-01 11:08:49 -07:00
|
|
|
if HAVE_JS
|
|
|
|
|
|
|
|
generated_ecore_audio_js_bindings = $(ecore_audio_eolian_files:%.eo=%.eo.js.cc)
|
|
|
|
|
|
|
|
GENERATED_JS_BINDINGS += $(generated_ecore_audio_js_bindings)
|
|
|
|
|
2015-10-22 13:54:18 -07:00
|
|
|
endif
|
2014-09-01 11:08:49 -07:00
|
|
|
|
|
|
|
endif
|