blob: f89ae9bedaa7cce1f01e3c82d6074e787993d3a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
}
|