dect
/
asterisk
Archived
13
0
Fork 0

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
This commit is contained in:
file 2007-07-11 16:03:31 +00:00
parent 8a7b7f8004
commit 7ed2695475
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ struct ast_speech_engine {
/*! Name of speech engine */
char *name;
/*! Set up the speech structure within the engine */
int (*create)(struct ast_speech *speech);
int (*create)(struct ast_speech *speech, int format);
/*! Destroy any data set on the speech structure by the engine */
int (*destroy)(struct ast_speech *speech);
/*! Load a local grammar on the speech structure */

View File

@ -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;