Reduce volume of hold music to 8k / 4k
authorMark Spencer <markster@digium.com>
Wed, 24 Mar 2004 21:54:05 +0000 (21:54 +0000)
committerMark Spencer <markster@digium.com>
Wed, 24 Mar 2004 21:54:05 +0000 (21:54 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2554 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_musiconhold.c

index 450442d..d0c1b64 100755 (executable)
@@ -123,11 +123,12 @@ static int spawn_mp3(struct mohclass *class)
        argv[5] = "8000";
        argv[6] = "-b";
        argv[7] = "2048";
        argv[5] = "8000";
        argv[6] = "-b";
        argv[7] = "2048";
-       argc = 8;
+       argv[8] = "-f";
+       argc = 9;
        if (class->quiet) {
        if (class->quiet) {
-               argv[argc++] = "-f";
+               argv[argc++] = "4096";
+       } else
                argv[argc++] = "8192";
                argv[argc++] = "8192";
-       }
 
        /* Look for extra arguments and add them to the list */
        strncpy(xargs, class->miscargs, sizeof(xargs) - 1);
 
        /* Look for extra arguments and add them to the list */
        strncpy(xargs, class->miscargs, sizeof(xargs) - 1);