• Stefan Knoblich's avatar
    ftmod_isdn: Rework teletone buffer offset handling in isdn_tones_run(). · 5367b961
    Stefan Knoblich 提交于
    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: 's avatarStefan Knoblich <stkn@openisdn.net>
    5367b961
ftmod_isdn.h 2.9 KB