diff options
author | Mark Spencer <markster@digium.com> | 2003-08-14 16:01:25 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2003-08-14 16:01:25 +0000 |
commit | 8e5659a7e8e2ac28808e959763e595f153a93a1b (patch) | |
tree | 03fbd43a4f58f792c4a88c4756eabf993e05ceb3 /apps/app_festival.c | |
parent | 2edde8f5a4a64824f6df5114e064895ffae78642 (diff) |
Oops
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1324 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_festival.c')
-rwxr-xr-x | apps/app_festival.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/app_festival.c b/apps/app_festival.c index 2c70487d7..23d7dc10f 100755 --- a/apps/app_festival.c +++ b/apps/app_festival.c @@ -128,21 +128,13 @@ static int send_waveform_to_channel(struct ast_channel *chan, char *waveform, in int ms = -1; int pid = -1; int needed = 0; - int us; - int exception; int owriteformat; - struct timeval tv; - struct timeval last; struct ast_frame *f; - int x; - struct ast_frame *winner; struct myframe { struct ast_frame f; char offset[AST_FRIENDLY_OFFSET]; char frdata[2048]; } myf; - last.tv_usec = 0; - last.tv_sec = 0; if (pipe(fds)) { ast_log(LOG_WARNING, "Unable to create pipe\n"); @@ -184,7 +176,7 @@ static int send_waveform_to_channel(struct ast_channel *chan, char *waveform, in } if (f->frametype == AST_FRAME_VOICE) { /* Treat as a generator */ - needed = f->sample * 2; + needed = f->samples * 2; if (needed > sizeof(myf.frdata)) { ast_log(LOG_WARNING, "Only able to deliver %d of %d requested samples\n", sizeof(myf.frdata) / 2, needed/2); |