aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2002-12-04 16:42:58 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2002-12-04 16:42:58 +0000
commitfda7ea90cd56ab6551e8b0d15671631914e6bec6 (patch)
tree11d2ad3079989a6751c2033a8600fa3ea30c3fa2 /res
parent36676e59eaf3519f973613418734454c3d341037 (diff)
Version 0.3.0 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@562 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rwxr-xr-xres/res_musiconhold.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 2630ba7c2..127047186 100755
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -109,7 +109,7 @@ static int spawn_mp3(struct mohclass *class)
{
int fds[2];
int files;
- char fns[80][MAX_MP3S];
+ char fns[MAX_MP3S][80];
char *argv[MAX_MP3S + 50];
char xargs[256];
char *argptr;
@@ -394,7 +394,7 @@ static void *moh_alloc(struct ast_channel *chan, void *params)
return res;
}
-static int moh_generate(struct ast_channel *chan, void *data, int len)
+static int moh_generate(struct ast_channel *chan, void *data, int len, int samples)
{
struct ast_frame f;
struct mohdata *moh = data;
@@ -416,7 +416,7 @@ static int moh_generate(struct ast_channel *chan, void *data, int len)
f.subclass = AST_FORMAT_SLINEAR;
f.mallocd = 0;
f.datalen = res;
- f.timelen = res / 8;
+ f.samples = res / 2;
f.data = buf + AST_FRIENDLY_OFFSET / 2;
f.offset = AST_FRIENDLY_OFFSET;
if (ast_write(chan, &f)< 0) {