aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Ecore_Audio.am
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@gmail.com>2015-04-15 16:53:39 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-07 09:53:07 +0200
commit62e29b39f4df40fd3c0a6b17f7a16f0f8fc1d0c9 (patch)
treeef94069e64c3d00e792a55fc4bc9147b054cffa1 /src/Makefile_Ecore_Audio.am
parentEcore_Exe: remove process_id field as it is a duplicate of the pid one (diff)
downloadefl-62e29b39f4df40fd3c0a6b17f7a16f0f8fc1d0c9.tar.gz
ecore_audio: integrate Apple's CoreAudio to play sounds on OS X.
Summary: Ecore_Audio now supports Apple's CoreAudio to play sounds read by libsndfile. edje_multisense integrates this new feature to enable PLAY_SAMPLE on OS X. Test Plan: Compiles, links and installs fine on OS X. Run terminology and elementary_test to hear sound played on user input. Reviewers: raster, naguirre, cedric Reviewed By: cedric Subscribers: plamot, cedric Differential Revision: https://phab.enlightenment.org/D2295 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/Makefile_Ecore_Audio.am')
-rw-r--r--src/Makefile_Ecore_Audio.am21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/Makefile_Ecore_Audio.am b/src/Makefile_Ecore_Audio.am
index e87ffb408a..8881f19401 100644
--- a/src/Makefile_Ecore_Audio.am
+++ b/src/Makefile_Ecore_Audio.am
@@ -8,9 +8,17 @@ ecore_audio_eolian_files = \
lib/ecore_audio/ecore_audio_out.eo \
lib/ecore_audio/ecore_audio_in_sndfile.eo \
lib/ecore_audio/ecore_audio_out_sndfile.eo \
- lib/ecore_audio/ecore_audio_out_pulse.eo \
lib/ecore_audio/ecore_audio_in_tone.eo
+
+if HAVE_ECORE_AUDIO_PULSE
+ecore_audio_eolian_files += lib/ecore_audio/ecore_audio_out_pulse.eo
+endif
+
+if HAVE_ECORE_AUDIO_CORE_AUDIO
+ecore_audio_eolian_files += lib/ecore_audio/ecore_audio_out_core_audio.eo
+endif
+
ecore_audio_eolian_c = $(ecore_audio_eolian_files:%.eo=%.eo.c)
ecore_audio_eolian_h = $(ecore_audio_eolian_files:%.eo=%.eo.h)
@@ -40,7 +48,7 @@ lib/ecore_audio/ecore_audio_obj_in_tone.h \
lib/ecore_audio/ecore_audio_protected.h
nodist_installed_ecoreaudiomainheaders_DATA = $(ecore_audio_eolian_h)
-
+
lib_ecore_audio_libecore_audio_la_SOURCES = \
lib/ecore_audio/ecore_audio.c \
lib/ecore_audio/ecore_audio_obj.c \
@@ -74,6 +82,15 @@ lib/ecore_audio/ecore_audio_obj_out_sndfile.c \
lib/ecore_audio/ecore_audio_sndfile_vio.c
endif
+if HAVE_ECORE_AUDIO_CORE_AUDIO
+dist_installed_ecoreaudiomainheaders_DATA += \
+lib/ecore_audio/ecore_audio_obj_out_core_audio.h
+lib_ecore_audio_libecore_audio_la_SOURCES += \
+lib/ecore_audio/ecore_audio_obj_out_core_audio.c
+lib_ecore_audio_libecore_audio_la_LDFLAGS += @coreaudio_ldflags@
+
+endif
+
endif
if HAVE_ELUA