asdfuser pushed a commit to branch master.
commit 029fc6ec2afaa529bdcc517bc11a810e277fb884
Author: Daniel Willmann <[email protected]>
Date: Tue Apr 23 17:11:48 2013 +0100
examples/ecore_audio: Require input and output file as argument
Signed-off-by: Daniel Willmann <[email protected]>
---
src/examples/ecore/ecore_audio_to_ogg.c | 8 ++++----
1 file 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 37c345a..dac6aa6 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;
--
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr