summaryrefslogtreecommitdiff
path: root/src/lib/ecore_audio/ecore_audio_obj_in_tone.c
diff options
context:
space:
mode:
authorDaniel Willmann <d.willmann@samsung.com>2013-04-19 15:29:18 +0100
committerDaniel Willmann <d.willmann@samsung.com>2013-04-19 15:29:44 +0100
commit3b5f002f179a0a1bc44d74a8e63eaf48f9a7b335 (patch)
tree3fca269faa70fe8462e3acfcfbc45d7fdb3ab302 /src/lib/ecore_audio/ecore_audio_obj_in_tone.c
parent1c0107afd8989a48841fd5bd94bfc0bd322b8030 (diff)
ecore_audio: Remove unnecessary methods in tone input
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_audio/ecore_audio_obj_in_tone.c58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/lib/ecore_audio/ecore_audio_obj_in_tone.c b/src/lib/ecore_audio/ecore_audio_obj_in_tone.c
index 11627f16d3..f641b8a780 100644
--- a/src/lib/ecore_audio/ecore_audio_obj_in_tone.c
+++ b/src/lib/ecore_audio/ecore_audio_obj_in_tone.c
@@ -91,59 +91,6 @@ err:
91 *ret = -1.0; 91 *ret = -1.0;
92} 92}
93 93
94static void _source_set(Eo *eo_obj, void *_pd EINA_UNUSED, va_list *list)
95{
96 Ecore_Audio_Object *ea_obj = eo_data_get(eo_obj, ECORE_AUDIO_OBJ_CLASS);
97
98 const char *source = va_arg(*list, const char *);
99
100 eina_stringshare_replace(&ea_obj->source, source);
101
102 if (!ea_obj->source)
103 return;
104
105 ea_obj->format = ECORE_AUDIO_FORMAT_AUTO;
106}
107
108static void _source_get(Eo *eo_obj, void *_pd EINA_UNUSED, va_list *list)
109{
110 Ecore_Audio_Object *obj = eo_data_get(eo_obj, ECORE_AUDIO_OBJ_CLASS);
111
112 const char **ret = va_arg(*list, const char **);
113
114 if (ret)
115 *ret = obj->source;
116}
117
118static void _format_set(Eo *eo_obj, void *_pd EINA_UNUSED, va_list *list)
119{
120 Ecore_Audio_Object *ea_obj = eo_data_get(eo_obj, ECORE_AUDIO_OBJ_CLASS);
121
122 Ecore_Audio_Format format= va_arg(*list, Ecore_Audio_Format);
123
124 if (ea_obj->source) {
125 ERR("Input is already open - cannot change format");
126 return;
127 }
128
129 switch (format) {
130 default:
131 ERR("Format not supported!");
132 return;
133 }
134 ea_obj->format = format;
135}
136
137static void _format_get(Eo *eo_obj, void *_pd EINA_UNUSED, va_list *list)
138{
139 Ecore_Audio_Object *obj = eo_data_get(eo_obj, ECORE_AUDIO_OBJ_CLASS);
140
141 Ecore_Audio_Format *ret = va_arg(*list, Ecore_Audio_Format *);
142
143 if (ret)
144 *ret = obj->format;
145}
146
147static void _length_set(Eo *eo_obj, void *_pd EINA_UNUSED, va_list *list) 94static void _length_set(Eo *eo_obj, void *_pd EINA_UNUSED, va_list *list)
148{ 95{
149 Ecore_Audio_Input *in_obj = eo_data_get(eo_obj, ECORE_AUDIO_OBJ_IN_CLASS); 96 Ecore_Audio_Input *in_obj = eo_data_get(eo_obj, ECORE_AUDIO_OBJ_IN_CLASS);
@@ -212,11 +159,6 @@ static void _class_constructor(Eo_Class *klass)
212 EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_DATA_GET), _data_get), 159 EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_DATA_GET), _data_get),
213 EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_DATA_SET), _data_set), 160 EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_DATA_SET), _data_set),
214 161
215 EO_OP_FUNC(ECORE_AUDIO_OBJ_ID(ECORE_AUDIO_OBJ_SUB_ID_SOURCE_SET), _source_set),
216 EO_OP_FUNC(ECORE_AUDIO_OBJ_ID(ECORE_AUDIO_OBJ_SUB_ID_SOURCE_GET), _source_get),
217 EO_OP_FUNC(ECORE_AUDIO_OBJ_ID(ECORE_AUDIO_OBJ_SUB_ID_FORMAT_SET), _format_set),
218 EO_OP_FUNC(ECORE_AUDIO_OBJ_ID(ECORE_AUDIO_OBJ_SUB_ID_FORMAT_GET), _format_get),
219
220 EO_OP_FUNC(ECORE_AUDIO_OBJ_IN_ID(ECORE_AUDIO_OBJ_IN_SUB_ID_LENGTH_SET), _length_set), 162 EO_OP_FUNC(ECORE_AUDIO_OBJ_IN_ID(ECORE_AUDIO_OBJ_IN_SUB_ID_LENGTH_SET), _length_set),
221 EO_OP_FUNC(ECORE_AUDIO_OBJ_IN_ID(ECORE_AUDIO_OBJ_IN_SUB_ID_SEEK), _seek), 163 EO_OP_FUNC(ECORE_AUDIO_OBJ_IN_ID(ECORE_AUDIO_OBJ_IN_SUB_ID_SEEK), _seek),
222 EO_OP_FUNC(ECORE_AUDIO_OBJ_IN_ID(ECORE_AUDIO_OBJ_IN_SUB_ID_READ_INTERNAL), _read), 164 EO_OP_FUNC(ECORE_AUDIO_OBJ_IN_ID(ECORE_AUDIO_OBJ_IN_SUB_ID_READ_INTERNAL), _read),