]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
thats better
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 14 Sep 2010 17:16:14 +0000 (12:16 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 14 Sep 2010 17:16:14 +0000 (12:16 -0500)
libs/freetdm/src/libteletone_generate.c
libs/libteletone/src/libteletone_generate.c

index 089268bc7b5d4d29889c41293a32b6f826c6ab7f..7f37b7a258cc83c681bbd7c79663d05542b971ba 100644 (file)
@@ -267,7 +267,7 @@ TELETONE_API(int) teletone_mux_tones(teletone_generation_session_t *ts, teletone
                                        ts->samples * 2);
                }
        }       
-       return ts->samples;
+       return ts->samples / ts->channels;
 }
 
 TELETONE_API(int) teletone_run(teletone_generation_session_t *ts, const char *cmd)
index 911e3c27971320f6a48257542eaa33ed615b49c2..8098e3605c8d8785aaf2745a581b872ef56bf870 100644 (file)
@@ -302,7 +302,7 @@ TELETONE_API(int) teletone_mux_tones(teletone_generation_session_t *ts, teletone
                                        ts->samples * 2);
                }
        }       
-       return ts->samples;
+       return ts->samples / ts->channels;
 }
 
 /* don't ask */