From dd7595a3475407a7fa96a97393bae8c5220e8762 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Wed, 4 Jan 2012 18:41:13 +1000 Subject: Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje. Note that embryo wont be used, but I'm not sure yet if you can build edje without it. --- .../multisense_factory/multisense_factory.c | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 libraries/edje/src/modules/multisense_factory/multisense_factory.c (limited to 'libraries/edje/src/modules/multisense_factory/multisense_factory.c') diff --git a/libraries/edje/src/modules/multisense_factory/multisense_factory.c b/libraries/edje/src/modules/multisense_factory/multisense_factory.c new file mode 100644 index 0000000..f89ae9b --- /dev/null +++ b/libraries/edje/src/modules/multisense_factory/multisense_factory.c @@ -0,0 +1,33 @@ +#include "config.h" +#include "edje_private.h" + +#define DEFAULT_SAMPLERATE 44100 + +#ifdef HAVE_LIBREMIX +EAPI RemixBase * +multisense_sound_player_get(Edje_Multisense_Env *msenv) +{ + RemixEnv *env = msenv->remixenv; + RemixPlugin *player_plugin; + RemixBase *player; + + player_plugin = remix_find_plugin(env, "alsa_snd_player"); + if (!player_plugin) + { + WRN("ALSA player_plugin init fail\n"); + return remix_monitor_new(env); + } + player = remix_new(env, player_plugin, NULL); + return player; +} +#endif + +EAPI Eina_Bool +multisense_factory_init(Edje_Multisense_Env *env) +{ +#ifdef HAVE_LIBREMIX + remix_set_samplerate(env->remixenv, DEFAULT_SAMPLERATE); + remix_set_channels(env->remixenv, REMIX_STEREO); +#endif + return EINA_TRUE; +} -- cgit v1.1