summaryrefslogtreecommitdiff
path: root/src/examples/ecore/ecore_audio_to_ogg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/ecore/ecore_audio_to_ogg.c')
-rw-r--r--src/examples/ecore/ecore_audio_to_ogg.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/examples/ecore/ecore_audio_to_ogg.c b/src/examples/ecore/ecore_audio_to_ogg.c
index 9d3162a..fceed59 100644
--- a/src/examples/ecore/ecore_audio_to_ogg.c
+++ b/src/examples/ecore/ecore_audio_to_ogg.c
@@ -20,10 +20,10 @@ static Eina_Bool _play_finished(void *data EINA_UNUSED, const Eo_Event *event)
20 const char *name; 20 const char *name;
21 Eo *out; 21 Eo *out;
22 22
23 eo_do(event->obj, ecore_audio_obj_name_get(&name)); 23 ecore_audio_obj_name_get(event->obj, &name);
24 printf("Done: %s\n", name); 24 printf("Done: %s\n", name);
25 25
26 eo_do(event->obj, ecore_audio_obj_in_output_get(&out)); 26 ecore_audio_obj_in_output_get(event->obj, &out);
27 eo_del(event->obj); 27 eo_del(event->obj);
28 eo_del(out); 28 eo_del(out);
29 29
@@ -50,18 +50,18 @@ main(int argc, char *argv[])
50 50
51 51
52 in = eo_add(ECORE_AUDIO_OBJ_IN_SNDFILE_CLASS, NULL); 52 in = eo_add(ECORE_AUDIO_OBJ_IN_SNDFILE_CLASS, NULL);
53 eo_do(in, ecore_audio_obj_name_set(basename(argv[1]))); 53 ecore_audio_obj_name_set(in, basename(argv[1]));
54 eo_do(in, ret = ecore_audio_obj_source_set(argv[1])); 54 ret = ecore_audio_obj_source_set(in, argv[1]);
55 if (!ret) { 55 if (!ret) {
56 printf("Could not set %s as input\n", argv[1]); 56 printf("Could not set %s as input\n", argv[1]);
57 eo_del(in); 57 eo_del(in);
58 return 1; 58 return 1;
59 } 59 }
60 60
61 eo_do(in, eo_event_callback_add(ECORE_AUDIO_EV_IN_STOPPED, _play_finished, NULL)); 61 eo_event_callback_add(in, ECORE_AUDIO_EV_IN_STOPPED, _play_finished, NULL);
62 62
63 out = eo_add(ECORE_AUDIO_OBJ_OUT_SNDFILE_CLASS, NULL); 63 out = eo_add(ECORE_AUDIO_OBJ_OUT_SNDFILE_CLASS, NULL);
64 eo_do(out, ret = ecore_audio_obj_source_set(argv[2])); 64 ret = ecore_audio_obj_source_set(out, argv[2]);
65 if (!ret) { 65 if (!ret) {
66 printf("Could not set %s as output\n", argv[2]); 66 printf("Could not set %s as output\n", argv[2]);
67 eo_del(in); 67 eo_del(in);
@@ -69,7 +69,7 @@ main(int argc, char *argv[])
69 return 1; 69 return 1;
70 } 70 }
71 71
72 eo_do(out, ret = ecore_audio_obj_out_input_attach(in)); 72 ret = ecore_audio_obj_out_input_attach(out, in);
73 if (!ret) { 73 if (!ret) {
74 printf("Could not attach input\n"); 74 printf("Could not attach input\n");
75 eo_del(out); 75 eo_del(out);