2013-04-11 10:23:57 -07:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include <config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#ifdef HAVE_FEATURES_H
|
|
|
|
#include <features.h>
|
|
|
|
#endif
|
|
|
|
#include <ctype.h>
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
#include <Eo.h>
|
|
|
|
#include "ecore_audio_private.h"
|
|
|
|
|
2014-06-02 06:47:59 -07:00
|
|
|
#define MY_CLASS ECORE_AUDIO_CLASS
|
2013-11-07 03:16:01 -08:00
|
|
|
#define MY_CLASS_NAME "Ecore_Audio"
|
2013-04-11 10:23:57 -07:00
|
|
|
|
|
|
|
|
2014-03-26 01:17:38 -07:00
|
|
|
EOLIAN static void
|
|
|
|
_ecore_audio_paused_set(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Object *obj, Eina_Bool paused)
|
2013-04-11 10:23:57 -07:00
|
|
|
{
|
|
|
|
obj->paused = paused;
|
|
|
|
}
|
|
|
|
|
2014-03-26 01:17:38 -07:00
|
|
|
EOLIAN static Eina_Bool
|
2018-04-17 11:09:44 -07:00
|
|
|
_ecore_audio_paused_get(const Eo *eo_obj EINA_UNUSED, Ecore_Audio_Object *obj)
|
2013-04-11 10:23:57 -07:00
|
|
|
{
|
2014-03-26 01:17:38 -07:00
|
|
|
return obj->paused;
|
2013-04-11 10:23:57 -07:00
|
|
|
}
|
|
|
|
|
2014-03-26 01:17:38 -07:00
|
|
|
EOLIAN static void
|
|
|
|
_ecore_audio_volume_set(Eo *eo_obj EINA_UNUSED, Ecore_Audio_Object *obj, double volume)
|
2013-04-12 09:31:14 -07:00
|
|
|
{
|
|
|
|
obj->volume = volume;
|
|
|
|
}
|
|
|
|
|
2014-03-26 01:17:38 -07:00
|
|
|
EOLIAN static double
|
2018-04-17 11:09:44 -07:00
|
|
|
_ecore_audio_volume_get(const Eo *eo_obj EINA_UNUSED, Ecore_Audio_Object *obj)
|
2013-04-12 09:31:14 -07:00
|
|
|
{
|
2014-03-26 01:17:38 -07:00
|
|
|
return obj->volume;
|
2013-04-12 09:31:14 -07:00
|
|
|
}
|
|
|
|
|
2015-05-19 03:41:27 -07:00
|
|
|
EOLIAN static Eo *
|
2016-08-10 07:23:04 -07:00
|
|
|
_ecore_audio_efl_object_constructor(Eo *eo_obj, Ecore_Audio_Object *obj)
|
2013-04-11 10:23:57 -07:00
|
|
|
{
|
|
|
|
obj->volume = 1.0;
|
2016-08-15 06:44:41 -07:00
|
|
|
return efl_constructor(efl_super(eo_obj, MY_CLASS));
|
2013-04-11 10:23:57 -07:00
|
|
|
}
|
|
|
|
|
2014-03-26 01:17:38 -07:00
|
|
|
#include "ecore_audio.eo.c"
|