From 7ed2695475e5b22b89ab5ea6d474f2e63bd2b337 Mon Sep 17 00:00:00 2001 From: file Date: Wed, 11 Jul 2007 16:03:31 +0000 Subject: Change the speech API to allow passing the format through to the engine. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@74551 f38db490-d61c-443f-a65b-d21fe96a405b --- res/res_speech.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'res/res_speech.c') diff --git a/res/res_speech.c b/res/res_speech.c index 67dce81cf..fdcf322a6 100644 --- a/res/res_speech.c +++ b/res/res_speech.c @@ -185,7 +185,7 @@ struct ast_speech *ast_speech_new(char *engine_name, int format) ast_speech_change_state(new_speech, AST_SPEECH_STATE_NOT_READY); /* Pass ourselves to the engine so they can set us up some more and if they error out then do not create a structure */ - if (engine->create(new_speech)) { + if (engine->create(new_speech, format)) { ast_mutex_destroy(&new_speech->lock); ast_free(new_speech); new_speech = NULL; -- cgit v1.2.3