summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore_audio.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-08-15 14:44:41 +0100
committerTom Hacohen <tom@stosb.com>2016-08-15 15:07:42 +0100
commite65aae994e72c1d3f8ac6b5360d3772f177b77ef (patch)
tree7ecaf136e45470635889191aded2b47057720a98 /src/tests/ecore/ecore_test_ecore_audio.c
parent35abb3c34d10a4826c98055fb85ecf93915e5ea8 (diff)
Eo: Finish the renaming of Eo to the EFL.
This renames all the rest of the API to the EFL namespace except for Eo_Event that will follow soon. Obviously breaks both API and ABI.
Diffstat (limited to 'src/tests/ecore/ecore_test_ecore_audio.c')
-rw-r--r--src/tests/ecore/ecore_test_ecore_audio.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_audio.c b/src/tests/ecore/ecore_test_ecore_audio.c
index 7b744dd..254db11 100644
--- a/src/tests/ecore/ecore_test_ecore_audio.c
+++ b/src/tests/ecore/ecore_test_ecore_audio.c
@@ -57,14 +57,14 @@ START_TEST(ecore_test_ecore_audio_obj_pulse)
57 Eina_Bool ret = EINA_FALSE; 57 Eina_Bool ret = EINA_FALSE;
58 Eina_Bool pulse_context_failed = EINA_FALSE; 58 Eina_Bool pulse_context_failed = EINA_FALSE;
59 59
60 in = eo_add(ECORE_AUDIO_IN_SNDFILE_CLASS, NULL); 60 in = efl_add(ECORE_AUDIO_IN_SNDFILE_CLASS, NULL);
61 fail_if(!in); 61 fail_if(!in);
62 62
63 ecore_audio_obj_name_set(in, "sample.wav"); 63 ecore_audio_obj_name_set(in, "sample.wav");
64 ret = ecore_audio_obj_source_set(in, TESTS_SRC_DIR"/sample.wav"); 64 ret = ecore_audio_obj_source_set(in, TESTS_SRC_DIR"/sample.wav");
65 fail_if(!ret); 65 fail_if(!ret);
66 66
67 out = eo_add(ECORE_AUDIO_OUT_PULSE_CLASS, NULL); 67 out = efl_add(ECORE_AUDIO_OUT_PULSE_CLASS, NULL);
68 fail_if(!out); 68 fail_if(!out);
69 69
70 ecore_timer_add(1.8, _seek_vol, in); 70 ecore_timer_add(1.8, _seek_vol, in);
@@ -108,12 +108,12 @@ START_TEST(ecore_test_ecore_audio_cleanup)
108 int freq = 1000; 108 int freq = 1000;
109 Eina_Bool ret = EINA_FALSE; 109 Eina_Bool ret = EINA_FALSE;
110 110
111 in = eo_add(ECORE_AUDIO_IN_TONE_CLASS, NULL); 111 in = efl_add(ECORE_AUDIO_IN_TONE_CLASS, NULL);
112 fail_if(!in); 112 fail_if(!in);
113 efl_key_data_set(in, ECORE_AUDIO_ATTR_TONE_FREQ, &freq); 113 efl_key_data_set(in, ECORE_AUDIO_ATTR_TONE_FREQ, &freq);
114 ecore_audio_obj_in_length_set(in, 2); 114 ecore_audio_obj_in_length_set(in, 2);
115 115
116 out = eo_add(ECORE_AUDIO_OUT_SNDFILE_CLASS, NULL); 116 out = efl_add(ECORE_AUDIO_OUT_SNDFILE_CLASS, NULL);
117 fail_if(!out); 117 fail_if(!out);
118 ret = ecore_audio_obj_format_set(out, ECORE_AUDIO_FORMAT_OGG); 118 ret = ecore_audio_obj_format_set(out, ECORE_AUDIO_FORMAT_OGG);
119 fail_if(!ret); 119 fail_if(!ret);
@@ -139,7 +139,7 @@ START_TEST(ecore_test_ecore_audio_obj_tone)
139 Eina_Bool ret; 139 Eina_Bool ret;
140 char *tmp; 140 char *tmp;
141 141
142 in = eo_add(ECORE_AUDIO_IN_TONE_CLASS, NULL); 142 in = efl_add(ECORE_AUDIO_IN_TONE_CLASS, NULL);
143 fail_if(!in); 143 fail_if(!in);
144 144
145 ecore_audio_obj_name_set(in, "tone"); 145 ecore_audio_obj_name_set(in, "tone");
@@ -197,7 +197,7 @@ START_TEST(ecore_test_ecore_audio_obj_tone)
197 len = ecore_audio_obj_in_remaining_get(in); 197 len = ecore_audio_obj_in_remaining_get(in);
198 fail_if(len != 1.0); 198 fail_if(len != 1.0);
199 199
200 out = eo_add(ECORE_AUDIO_OUT_SNDFILE_CLASS, NULL); 200 out = efl_add(ECORE_AUDIO_OUT_SNDFILE_CLASS, NULL);
201 fail_if(!out); 201 fail_if(!out);
202 202
203 ecore_audio_obj_name_set(out, "tmp.wav"); 203 ecore_audio_obj_name_set(out, "tmp.wav");
@@ -231,7 +231,7 @@ START_TEST(ecore_test_ecore_audio_obj_sndfile)
231 Ecore_Audio_Format fmt; 231 Ecore_Audio_Format fmt;
232 const char *src; 232 const char *src;
233 233
234 in = eo_add(ECORE_AUDIO_IN_SNDFILE_CLASS, NULL); 234 in = efl_add(ECORE_AUDIO_IN_SNDFILE_CLASS, NULL);
235 fail_if(!in); 235 fail_if(!in);
236 236
237 fmt = ecore_audio_obj_format_get(in); 237 fmt = ecore_audio_obj_format_get(in);
@@ -277,7 +277,7 @@ START_TEST(ecore_test_ecore_audio_obj_sndfile)
277 len = ecore_audio_obj_in_seek(in, -1.5, SEEK_END); 277 len = ecore_audio_obj_in_seek(in, -1.5, SEEK_END);
278 fail_if(fabs(rem - 1 - len) > 0.6); 278 fail_if(fabs(rem - 1 - len) > 0.6);
279 279
280 out = eo_add(ECORE_AUDIO_OUT_SNDFILE_CLASS, NULL); 280 out = efl_add(ECORE_AUDIO_OUT_SNDFILE_CLASS, NULL);
281 fail_if(!out); 281 fail_if(!out);
282 282
283 ecore_audio_obj_name_set(out, "tmp.wav"); 283 ecore_audio_obj_name_set(out, "tmp.wav");
@@ -318,9 +318,9 @@ START_TEST(ecore_test_ecore_audio_obj_in_out)
318 Eina_List *in3; 318 Eina_List *in3;
319 Eina_Bool attached; 319 Eina_Bool attached;
320 320
321 Eo *in = eo_add(ECORE_AUDIO_IN_CLASS, NULL); 321 Eo *in = efl_add(ECORE_AUDIO_IN_CLASS, NULL);
322 Eo *in2 = eo_add(ECORE_AUDIO_IN_CLASS, NULL); 322 Eo *in2 = efl_add(ECORE_AUDIO_IN_CLASS, NULL);
323 Eo *out = eo_add(ECORE_AUDIO_OUT_CLASS, NULL); 323 Eo *out = efl_add(ECORE_AUDIO_OUT_CLASS, NULL);
324 324
325 fail_if(!in); 325 fail_if(!in);
326 fail_if(!in2); 326 fail_if(!in2);
@@ -416,10 +416,10 @@ START_TEST(ecore_test_ecore_audio_obj_vio)
416{ 416{
417 Eo *in, *out; 417 Eo *in, *out;
418 418
419 in = eo_add(ECORE_AUDIO_IN_CLASS, NULL); 419 in = efl_add(ECORE_AUDIO_IN_CLASS, NULL);
420 fail_if(!in); 420 fail_if(!in);
421 421
422 out = eo_add(ECORE_AUDIO_OUT_CLASS, NULL); 422 out = efl_add(ECORE_AUDIO_OUT_CLASS, NULL);
423 fail_if(!out); 423 fail_if(!out);
424 424
425 ecore_audio_obj_vio_set(in, &in_vio, NULL, NULL); 425 ecore_audio_obj_vio_set(in, &in_vio, NULL, NULL);
@@ -454,7 +454,7 @@ START_TEST(ecore_test_ecore_audio_obj_in)
454 Ecore_Audio_Vio vio; 454 Ecore_Audio_Vio vio;
455 Eina_Bool freed = EINA_FALSE; 455 Eina_Bool freed = EINA_FALSE;
456 456
457 Eo *in = eo_add(ECORE_AUDIO_IN_CLASS, NULL); 457 Eo *in = efl_add(ECORE_AUDIO_IN_CLASS, NULL);
458 458
459 fail_if(!in); 459 fail_if(!in);
460 460
@@ -541,10 +541,10 @@ START_TEST(ecore_test_ecore_audio_obj)
541 double volume; 541 double volume;
542 Eo *objs[2], *obj; 542 Eo *objs[2], *obj;
543 543
544 objs[0] = eo_add(ECORE_AUDIO_IN_CLASS, NULL); 544 objs[0] = efl_add(ECORE_AUDIO_IN_CLASS, NULL);
545 fail_if(!objs[0]); 545 fail_if(!objs[0]);
546 546
547 objs[1] = eo_add(ECORE_AUDIO_OUT_CLASS, NULL); 547 objs[1] = efl_add(ECORE_AUDIO_OUT_CLASS, NULL);
548 fail_if(!objs[1]); 548 fail_if(!objs[1]);
549 549
550 for (i=0; i<2; i++) { 550 for (i=0; i<2; i++) {