mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	Change the speech API to allow passing the format through to the engine.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74551 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user