diff options
author | Joshua Colp <jcolp@digium.com> | 2007-04-06 01:29:28 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-04-06 01:29:28 +0000 |
commit | 1c2e3e1ffc336b1012ca07d0bb061ba3ba910ecd (patch) | |
tree | 2a4997a4a36f6531adc3c15d9903a75054d9e8ed /include/asterisk/speech.h | |
parent | 4b618442a01b99126fc1ad0bdc5150980bfeea1f (diff) |
Major res_speech cleanup. It looks much better now!
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@60363 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/speech.h')
-rw-r--r-- | include/asterisk/speech.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/include/asterisk/speech.h b/include/asterisk/speech.h index 09d08ddb1..95f667d7e 100644 --- a/include/asterisk/speech.h +++ b/include/asterisk/speech.h @@ -28,14 +28,18 @@ extern "C" { #endif /* Speech structure flags */ -#define AST_SPEECH_QUIET (1 << 0) /* Quiet down output... they are talking */ -#define AST_SPEECH_SPOKE (1 << 1) /* Speaker did not speak */ +enum ast_speech_flags { + AST_SPEECH_QUIET = (1 << 0), /* Quiet down output... they are talking */ + AST_SPEECH_SPOKE = (1 << 1), /* Speaker spoke! */ +}; /* Speech structure states - in order of expected change */ -#define AST_SPEECH_STATE_NOT_READY 0 /* Not ready to accept audio */ -#define AST_SPEECH_STATE_READY 1 /* Accepting audio */ -#define AST_SPEECH_STATE_WAIT 2 /* Wait for results to become available */ -#define AST_SPEECH_STATE_DONE 3 /* Processing is done */ +enum ast_speech_states { + AST_SPEECH_STATE_NOT_READY = 0, /* Not ready to accept audio */ + AST_SPEECH_STATE_READY, /* Accepting audio */ + AST_SPEECH_STATE_WAIT, /* Wait for results to become available */ + AST_SPEECH_STATE_DONE, /* Processing is all done */ +}; enum ast_speech_results_type { AST_SPEECH_RESULTS_TYPE_NORMAL = 0, |