Minor cleanups

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-06-27 23:02:52 +00:00
parent e7a1bdc90c
commit f945ae2122
6 changed files with 21 additions and 19 deletions

View File

@@ -112,7 +112,6 @@ static char *convert(char *lastname)
case 'Z':
tmp[lcount++] = '9';
break;
default:
}
lastname++;
}

View File

@@ -46,8 +46,9 @@ static char *app = "Festival";
static char *synopsis = "Say text to the user";
static char *descrip =
" Festival(): Connect to Festival, send the argument, get back the waveform,"
"play it to the user.\n";
" Festival(text[|intkeys]): Connect to Festival, send the argument, get back the waveform,"
"play it to the user, allowing any given interrupt keys to immediately terminate and return\n"
"the value.\n";
STANDARD_LOCAL_USER;
@@ -302,9 +303,7 @@ static int festival_exec(struct ast_channel *chan, void *data)
if (!(temp = ast_variable_retrieve(cfg, "general", "usecache"))) {
usecache=0;
} else {
if (strcasecmp(temp,"yes")==0) {
usecache=1;
}
usecache = ast_true(temp);
}
if (!(cachedir = ast_variable_retrieve(cfg, "general", "cachedir"))) {
cachedir = "/tmp/";

View File

@@ -55,7 +55,7 @@ static void milliwatt_release(struct ast_channel *chan, void *data)
return;
}
static int milliwatt_generate(struct ast_channel *chan, void *data, int len)
static int milliwatt_generate(struct ast_channel *chan, void *data, int len, int samples)
{
struct ast_frame wf;
unsigned char waste[AST_FRIENDLY_OFFSET];