ecore_audio: Add return value to input_attach method
Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
This commit is contained in:
parent
ee3ea49cfa
commit
49403e9659
|
@ -66,7 +66,7 @@ main(int argc, const char *argv[])
|
|||
eo_do(in, ecore_audio_obj_volume_set(0.7));
|
||||
eo_do(in, ecore_audio_obj_vio_set(&vio, NULL, NULL));
|
||||
|
||||
eo_do(out, ecore_audio_obj_out_input_attach(in));
|
||||
eo_do(out, ecore_audio_obj_out_input_attach(in, NULL));
|
||||
|
||||
ecore_main_loop_begin();
|
||||
|
||||
|
|
|
@ -64,7 +64,7 @@ handle_cmd(char *cmd, size_t bread)
|
|||
ecore_audio_obj_in_length_get(&length));
|
||||
|
||||
printf("Start: %s (%0.2fs)\n", name, length);
|
||||
eo_do(out, ecore_audio_obj_out_input_attach(in));
|
||||
eo_do(out, ecore_audio_obj_out_input_attach(in, NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -83,7 +83,7 @@ handle_cmd(char *cmd, size_t bread)
|
|||
ecore_audio_obj_in_length_get(&length));
|
||||
|
||||
printf("Start: %s (%0.2fs)\n", name, length);
|
||||
eo_do(out, ecore_audio_obj_out_input_attach(in));
|
||||
eo_do(out, ecore_audio_obj_out_input_attach(in, NULL));
|
||||
}
|
||||
}
|
||||
else if (!strncmp(cmd, "l", bread))
|
||||
|
@ -214,7 +214,7 @@ static Eina_Bool _play_finished(void *data EINA_UNUSED, Eo *in, const Eo_Event_D
|
|||
|
||||
eo_do(in, ecore_audio_obj_name_get(&name));
|
||||
printf("Start: %s\n", name);
|
||||
eo_do(out, ecore_audio_obj_out_input_attach(in));
|
||||
eo_do(out, ecore_audio_obj_out_input_attach(in, NULL));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -296,7 +296,7 @@ main(int argc, const char *argv[])
|
|||
printf("Start: %s (%0.2fs)\n", name, length);
|
||||
|
||||
out = eo_add(ECORE_AUDIO_OBJ_OUT_PULSE_CLASS, NULL);
|
||||
eo_do(out, ecore_audio_obj_out_input_attach(in));
|
||||
eo_do(out, ecore_audio_obj_out_input_attach(in, NULL));
|
||||
|
||||
|
||||
/* Disable canonical mode for stdin */
|
||||
|
|
|
@ -58,7 +58,7 @@ main(int argc, const char *argv[])
|
|||
out = eo_add(ECORE_AUDIO_OBJ_OUT_SNDFILE_CLASS, NULL);
|
||||
eo_do(out, ecore_audio_obj_source_set("foo.ogg"));
|
||||
|
||||
eo_do(out, ecore_audio_obj_out_input_attach(in));
|
||||
eo_do(out, ecore_audio_obj_out_input_attach(in, NULL));
|
||||
|
||||
ecore_main_loop_begin();
|
||||
|
||||
|
|
Loading…
Reference in New Issue