Stefan Knoblich 5367b96153 ftmod_isdn: Rework teletone buffer offset handling in isdn_tones_run().
Store the offset in the teletone buffer in the b-channel private data.

An NT-mode setup with ftmod_misdn showed severe (dial-)tone distortions
in a sound editor (330Hz sine wave phase errors), caused by
using a global teletone buffer offset.

Switching to a per-channel offset, that is advanced by the amount
of data actually written to the channel, removes (almost) all
distortions.

There is still a minimal phase error every ~500ms (audible) that
needs more investigating.

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
2012-07-26 01:21:47 +02:00
..
2012-01-03 14:11:47 -05:00
2011-03-06 22:11:39 -05:00
2011-03-17 08:34:00 -05:00
2011-03-11 17:36:42 -05:00
2011-01-21 10:51:34 -05:00

FreeTDM
http://wiki.freeswitch.org/wiki/FreeTDM