From 7a98f617e94ef42787e06e685a8d5e7be34fff21 Mon Sep 17 00:00:00 2001 From: Ivan Furs Date: Tue, 3 Oct 2017 11:21:07 -0700 Subject: ecore_audio: a minimal template for playing sound on WINDOWS is added MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/Makefile_Ecore_Audio.am | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/Makefile_Ecore_Audio.am') diff --git a/src/Makefile_Ecore_Audio.am b/src/Makefile_Ecore_Audio.am index bd68dd6c4b..c8a1caecc2 100644 --- a/src/Makefile_Ecore_Audio.am +++ b/src/Makefile_Ecore_Audio.am @@ -9,7 +9,8 @@ ecore_audio_eolian_files = \ 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 + lib/ecore_audio/ecore_audio_in_tone.eo \ + lib/ecore_audio/ecore_audio_out_wasapi.eo ecore_audio_eolian_c = $(ecore_audio_eolian_files:%.eo=%.eo.c) @@ -60,6 +61,14 @@ lib/ecore_audio/ecore_audio_pulse_ml.c \ lib/ecore_audio/ecore_audio_obj_out_pulse.c endif +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 + if HAVE_ECORE_AUDIO_SNDFILE lib_ecore_audio_libecore_audio_la_SOURCES += \ lib/ecore_audio/ecore_audio_obj_in_sndfile.c \ -- cgit v1.2.1