aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Willmann <d.willmann@samsung.com>2013-04-23 17:11:48 +0100
committerDaniel Willmann <d.willmann@samsung.com>2013-04-23 17:13:39 +0100
commit029fc6ec2afaa529bdcc517bc11a810e277fb884 (patch)
treef669673c3c490941583e28ba864e70eb3e0e21c3
parentecore_audio: Add more return values for methods, catch up with API (diff)
downloadefl-029fc6ec2afaa529bdcc517bc11a810e277fb884.tar.gz
examples/ecore_audio: Require input and output file as argument
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
-rw-r--r--src/examples/ecore/ecore_audio_to_ogg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/ecore/ecore_audio_to_ogg.c b/src/examples/ecore/ecore_audio_to_ogg.c
index 37c345ad05..dac6aa624d 100644
--- a/src/examples/ecore/ecore_audio_to_ogg.c
+++ b/src/examples/ecore/ecore_audio_to_ogg.c
@@ -39,9 +39,9 @@ main(int argc, char *argv[])
Eo *in;
Eina_Bool ret;
- if (argc < 2)
+ if (argc < 3)
{
- printf("Please provide a filename\n");
+ printf("Usage: ./example <infile> <outfile>\n");
exit(EXIT_FAILURE);
}
@@ -61,9 +61,9 @@ main(int argc, char *argv[])
eo_do(in, eo_event_callback_add(ECORE_AUDIO_EV_IN_STOPPED, _play_finished, NULL));
out = eo_add(ECORE_AUDIO_OBJ_OUT_SNDFILE_CLASS, NULL);
- eo_do(out, ecore_audio_obj_source_set("foo.ogg", &ret));
+ eo_do(out, ecore_audio_obj_source_set(argv[2], &ret));
if (!ret) {
- printf("Could not set %s as output\n", "foo.ogg");
+ printf("Could not set %s as output\n", argv[2]);
eo_del(in);
eo_del(out);
return 1;