summaryrefslogtreecommitdiff
path: root/src/lib/ecore_audio/ecore_audio_obj_in_tone.h
blob: 13bd01645cb16db85c2bb0ad002ae215cb6dc353 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef ECORE_AUDIO_IN_TONE_H
#define ECORE_AUDIO_IN_TONE_H

#include <Eina.h>
#include <Eo.h>

#ifdef EAPI
#undef EAPI
#endif

#ifdef __GNUC__
#if __GNUC__ >= 4
#define EAPI __attribute__ ((visibility("default")))
#else
#define EAPI
#endif
#else
#define EAPI
#endif

/**
 * @file ecore_audio_obj_in_tone.h
 * @brief Ecore_Audio tone input
 */

#ifdef __cplusplus
extern "C"
{
#endif

/**
 * @defgroup ecore_audio_obj_in_tone - Ecore_Audio tone input
 * @ingroup Ecore_Audio_Group
 * @{
 */

/**
 * @brief The frequency of the tone in Hz
 *
 * Set with @ref eo_base_data_set()
 */
#define ECORE_AUDIO_ATTR_TONE_FREQ "ecore_audio_freq"

#define ECORE_AUDIO_OBJ_IN_TONE_CLASS ecore_audio_obj_in_tone_class_get() /**< Ecore_Audio tone input */

/**
 * @brief Get the Eo class ID 
 *
 * @return The Eo class ID
 */
const Eo_Class *ecore_audio_obj_in_tone_class_get() EINA_CONST;

extern EAPI Eo_Op ECORE_AUDIO_OBJ_IN_TONE_BASE_ID;

enum Ecore_Audio_Obj_In_Tone_Sub_Ids
{
   ECORE_AUDIO_OBJ_IN_TONE_SUB_ID_LAST
};

#define ECORE_AUDIO_OBJ_IN_TONE_ID(sub_id) (ECORE_AUDIO_OBJ_IN_TONE_BASE_ID + EO_TYPECHECK(enum Ecore_Audio_Obj_In_Tone_Sub_Ids, sub_id)

/**
 * @}
 */

#ifdef __cplusplus
}
#endif

#endif