summaryrefslogtreecommitdiff
path: root/src/lib/ecore_audio/ecore_audio.eo
diff options
context:
space:
mode:
authorYossi Kantor <yossi.kantor@samsung.com>2014-03-26 10:17:38 +0200
committerDaniel Zaoui <daniel.zaoui@samsung.com>2014-04-02 15:56:14 +0300
commiteb2821bca0eb6e67e8c2bfe345f923bc419bbfa5 (patch)
tree56e2670ac0c7978b7947eec8ead2104ed511bbb2 /src/lib/ecore_audio/ecore_audio.eo
parent165efe2254ecd352011d28a351cd874c6eb0a181 (diff)
Eolian: Integration of Ecore Audio
Diffstat (limited to 'src/lib/ecore_audio/ecore_audio.eo')
-rw-r--r--src/lib/ecore_audio/ecore_audio.eo132
1 files changed, 132 insertions, 0 deletions
diff --git a/src/lib/ecore_audio/ecore_audio.eo b/src/lib/ecore_audio/ecore_audio.eo
new file mode 100644
index 0000000000..6c2d70536e
--- /dev/null
+++ b/src/lib/ecore_audio/ecore_audio.eo
@@ -0,0 +1,132 @@
1class Ecore_Audio (Eo_Base)
2{
3 eo_prefix: ecore_audio_obj;
4 data: Ecore_Audio_Object;
5 properties {
6 name {
7 set {
8 /*@
9 Set the name of the object
10
11 @since 1.8 */
12 legacy null;
13 }
14 get {
15 /*@
16 Get the name of the object
17
18 @since 1.8 */
19 legacy null;
20 }
21 values {
22 const char *name;
23 }
24 }
25 paused {
26 set {
27 /*@
28 Set the pause state of the object
29
30 @since 1.8 */
31 legacy null;
32 }
33 get {
34 /*@
35 Get the pause state of the object
36
37 @since 1.8 */
38 legacy null;
39 }
40 values {
41 Eina_Bool paused; /*ret EINA_TRUE if object is paused, EINA_FALSE if not*/
42 }
43 }
44 volume {
45 set {
46 /*@
47 Set the volume of the object
48
49 @since 1.8 */
50 legacy null;
51 }
52 get {
53 /*@
54 Get the volume of the object
55
56 @since 1.8 */
57 legacy null;
58 }
59 values {
60 double volume; /*The volume*/
61 }
62 }
63 source {
64 set {
65 /*@
66 Set the source of the object
67
68 What sources are supported depends on the actual object. For example,
69 the libsndfile class accepts WAV, OGG, FLAC files as source.
70
71 @since 1.8 */
72 legacy null;
73 return Eina_Bool; /*EINA_TRUE if the source was set correctly (i.e. the file was opened), EINA_FALSE otherwise*/
74 }
75 get {
76 /*@
77 Get the source of the object
78
79 @since 1.8 */
80 legacy null;
81 }
82 values {
83 const char *source; /*The source to set to (i.e. file, URL, device)*/
84 }
85 }
86 format {
87 set {
88 /*@
89 Set the format of the object
90
91 What formats are supported depends on the actual object. Default is
92 ECORE_AUDIO_FORMAT_AUTO
93
94 @since 1.8 */
95 legacy null;
96 return Eina_Bool; /*EINA_TRUE if the format was supported, EINA_FALSE otherwise*/
97 }
98 get {
99 /*@
100 Get the format of the object
101
102 After setting the source if the format was ECORE_AUDIO_FORMAT_AUTO this
103 function will now return the actual format.
104
105 @since 1.8 */
106 legacy null;
107 }
108 values {
109 Ecore_Audio_Format format; /*The format of the object*/
110 }
111 }
112 }
113 methods {
114 vio_set {
115 /*@
116 Set the virtual IO functions
117
118 @since 1.8 */
119 params {
120 Ecore_Audio_Vio *vio; /*The @ref Ecore_Audio_Vio struct with the function callbacks*/
121 void *data; /*User data to pass to the VIO functions*/
122 eo_base_data_free_func free_func; /*This function takes care to clean up @ref data when he VIO is destroyed. NULL means do nothing.*/
123 }
124 }
125 }
126 implements {
127 Eo_Base::constructor;
128 virtual::source;
129 virtual::format;
130 virtual::vio_set;
131 }
132} \ No newline at end of file