summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore_audio.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-06-02 14:47:59 +0100
committerTom Hacohen <tom@stosb.com>2014-06-03 11:28:01 +0100
commit0fc3279db966a5329b80c84794f9bff97e7a7ef0 (patch)
treea9a5e8a5c4d3291ceef4889955ed60b91432641f /src/tests/ecore/ecore_test_ecore_audio.c
parent62a3522fcc4bbb6389d1c81b439cf9cc2f4a4e28 (diff)
Efl: Update code to use the new class names generated by eolian.
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 ea51c80..0dc8f1a 100644
--- a/src/tests/ecore/ecore_test_ecore_audio.c
+++ b/src/tests/ecore/ecore_test_ecore_audio.c
@@ -64,14 +64,14 @@ START_TEST(ecore_test_ecore_audio_obj_pulse)
64 Eina_Bool ret = EINA_FALSE; 64 Eina_Bool ret = EINA_FALSE;
65 Eina_Bool pulse_context_failed = EINA_FALSE; 65 Eina_Bool pulse_context_failed = EINA_FALSE;
66 66
67 in = eo_add(ECORE_AUDIO_OBJ_IN_SNDFILE_CLASS, NULL); 67 in = eo_add(ECORE_AUDIO_IN_SNDFILE_CLASS, NULL);
68 fail_if(!in); 68 fail_if(!in);
69 69
70 eo_do(in, ecore_audio_obj_name_set("modem.wav")); 70 eo_do(in, ecore_audio_obj_name_set("modem.wav"));
71 eo_do(in, ret = ecore_audio_obj_source_set(TESTS_SRC_DIR"/modem.wav")); 71 eo_do(in, ret = ecore_audio_obj_source_set(TESTS_SRC_DIR"/modem.wav"));
72 fail_if(!ret); 72 fail_if(!ret);
73 73
74 out = eo_add(ECORE_AUDIO_OBJ_OUT_PULSE_CLASS, NULL); 74 out = eo_add(ECORE_AUDIO_OUT_PULSE_CLASS, NULL);
75 fail_if(!out); 75 fail_if(!out);
76 76
77 ecore_timer_add(0.3, _seek_vol, in); 77 ecore_timer_add(0.3, _seek_vol, in);
@@ -114,12 +114,12 @@ START_TEST(ecore_test_ecore_audio_cleanup)
114 int freq = 1000; 114 int freq = 1000;
115 Eina_Bool ret = EINA_FALSE; 115 Eina_Bool ret = EINA_FALSE;
116 116
117 in = eo_add(ECORE_AUDIO_OBJ_IN_TONE_CLASS, NULL); 117 in = eo_add(ECORE_AUDIO_IN_TONE_CLASS, NULL);
118 fail_if(!in); 118 fail_if(!in);
119 eo_do(in, eo_key_data_set(ECORE_AUDIO_ATTR_TONE_FREQ, &freq, NULL)); 119 eo_do(in, eo_key_data_set(ECORE_AUDIO_ATTR_TONE_FREQ, &freq, NULL));
120 eo_do(in, ecore_audio_obj_in_length_set(2)); 120 eo_do(in, ecore_audio_obj_in_length_set(2));
121 121
122 out = eo_add(ECORE_AUDIO_OBJ_OUT_SNDFILE_CLASS, NULL); 122 out = eo_add(ECORE_AUDIO_OUT_SNDFILE_CLASS, NULL);
123 fail_if(!out); 123 fail_if(!out);
124 eo_do(out, ret = ecore_audio_obj_format_set(ECORE_AUDIO_FORMAT_OGG)); 124 eo_do(out, ret = ecore_audio_obj_format_set(ECORE_AUDIO_FORMAT_OGG));
125 fail_if(!ret); 125 fail_if(!ret);
@@ -145,7 +145,7 @@ START_TEST(ecore_test_ecore_audio_obj_tone)
145 Eina_Bool ret; 145 Eina_Bool ret;
146 char *tmp; 146 char *tmp;
147 147
148 in = eo_add(ECORE_AUDIO_OBJ_IN_TONE_CLASS, NULL); 148 in = eo_add(ECORE_AUDIO_IN_TONE_CLASS, NULL);
149 fail_if(!in); 149 fail_if(!in);
150 150
151 eo_do(in, ecore_audio_obj_name_set("tone")); 151 eo_do(in, ecore_audio_obj_name_set("tone"));
@@ -203,7 +203,7 @@ START_TEST(ecore_test_ecore_audio_obj_tone)
203 eo_do(in, len = ecore_audio_obj_in_remaining_get()); 203 eo_do(in, len = ecore_audio_obj_in_remaining_get());
204 fail_if(len != 1.0); 204 fail_if(len != 1.0);
205 205
206 out = eo_add(ECORE_AUDIO_OBJ_OUT_SNDFILE_CLASS, NULL); 206 out = eo_add(ECORE_AUDIO_OUT_SNDFILE_CLASS, NULL);
207 fail_if(!out); 207 fail_if(!out);
208 208
209 eo_do(out, ecore_audio_obj_name_set("tmp.wav")); 209 eo_do(out, ecore_audio_obj_name_set("tmp.wav"));
@@ -237,7 +237,7 @@ START_TEST(ecore_test_ecore_audio_obj_sndfile)
237 Ecore_Audio_Format fmt; 237 Ecore_Audio_Format fmt;
238 const char *src; 238 const char *src;
239 239
240 in = eo_add(ECORE_AUDIO_OBJ_IN_SNDFILE_CLASS, NULL); 240 in = eo_add(ECORE_AUDIO_IN_SNDFILE_CLASS, NULL);
241 fail_if(!in); 241 fail_if(!in);
242 242
243 eo_do(in, fmt = ecore_audio_obj_format_get()); 243 eo_do(in, fmt = ecore_audio_obj_format_get());
@@ -283,7 +283,7 @@ START_TEST(ecore_test_ecore_audio_obj_sndfile)
283 eo_do(in, len = ecore_audio_obj_in_seek(-1.0, SEEK_END)); 283 eo_do(in, len = ecore_audio_obj_in_seek(-1.0, SEEK_END));
284 fail_if(fabs(rem - 1 - len) > 0.1); 284 fail_if(fabs(rem - 1 - len) > 0.1);
285 285
286 out = eo_add(ECORE_AUDIO_OBJ_OUT_SNDFILE_CLASS, NULL); 286 out = eo_add(ECORE_AUDIO_OUT_SNDFILE_CLASS, NULL);
287 fail_if(!out); 287 fail_if(!out);
288 288
289 eo_do(out, ecore_audio_obj_name_set("tmp.wav")); 289 eo_do(out, ecore_audio_obj_name_set("tmp.wav"));
@@ -324,9 +324,9 @@ START_TEST(ecore_test_ecore_audio_obj_in_out)
324 Eina_List *in3; 324 Eina_List *in3;
325 Eina_Bool attached; 325 Eina_Bool attached;
326 326
327 Eo *in = eo_add(ECORE_AUDIO_OBJ_IN_CLASS, NULL); 327 Eo *in = eo_add(ECORE_AUDIO_IN_CLASS, NULL);
328 Eo *in2 = eo_add(ECORE_AUDIO_OBJ_IN_CLASS, NULL); 328 Eo *in2 = eo_add(ECORE_AUDIO_IN_CLASS, NULL);
329 Eo *out = eo_add(ECORE_AUDIO_OBJ_OUT_CLASS, NULL); 329 Eo *out = eo_add(ECORE_AUDIO_OUT_CLASS, NULL);
330 330
331 fail_if(!in); 331 fail_if(!in);
332 fail_if(!in2); 332 fail_if(!in2);
@@ -422,10 +422,10 @@ START_TEST(ecore_test_ecore_audio_obj_vio)
422{ 422{
423 Eo *in, *out; 423 Eo *in, *out;
424 424
425 in = eo_add(ECORE_AUDIO_OBJ_IN_CLASS, NULL); 425 in = eo_add(ECORE_AUDIO_IN_CLASS, NULL);
426 fail_if(!in); 426 fail_if(!in);
427 427
428 out = eo_add(ECORE_AUDIO_OBJ_OUT_CLASS, NULL); 428 out = eo_add(ECORE_AUDIO_OUT_CLASS, NULL);
429 fail_if(!out); 429 fail_if(!out);
430 430
431 eo_do(in, ecore_audio_obj_vio_set(&in_vio, NULL, NULL)); 431 eo_do(in, ecore_audio_obj_vio_set(&in_vio, NULL, NULL));
@@ -460,7 +460,7 @@ START_TEST(ecore_test_ecore_audio_obj_in)
460 Ecore_Audio_Vio vio; 460 Ecore_Audio_Vio vio;
461 Eina_Bool freed = EINA_FALSE; 461 Eina_Bool freed = EINA_FALSE;
462 462
463 Eo *in = eo_add(ECORE_AUDIO_OBJ_IN_CLASS, NULL); 463 Eo *in = eo_add(ECORE_AUDIO_IN_CLASS, NULL);
464 464
465 fail_if(!in); 465 fail_if(!in);
466 466
@@ -549,10 +549,10 @@ START_TEST(ecore_test_ecore_audio_obj)
549 double volume; 549 double volume;
550 Eo *objs[2], *obj; 550 Eo *objs[2], *obj;
551 551
552 objs[0] = eo_add(ECORE_AUDIO_OBJ_IN_CLASS, NULL); 552 objs[0] = eo_add(ECORE_AUDIO_IN_CLASS, NULL);
553 fail_if(!objs[0]); 553 fail_if(!objs[0]);
554 554
555 objs[1] = eo_add(ECORE_AUDIO_OBJ_OUT_CLASS, NULL); 555 objs[1] = eo_add(ECORE_AUDIO_OUT_CLASS, NULL);
556 fail_if(!objs[1]); 556 fail_if(!objs[1]);
557 557
558 for (i=0; i<2; i++) { 558 for (i=0; i<2; i++) {