]> git.ipfire.org Git - thirdparty/asterisk.git/commit
ast_samp2tv needs floating point for 16khz audio
authorDavid Vossel <dvossel@digium.com>
Wed, 8 Jul 2009 16:53:40 +0000 (16:53 +0000)
committerDavid Vossel <dvossel@digium.com>
Wed, 8 Jul 2009 16:53:40 +0000 (16:53 +0000)
commit9f4c452028a0d696c3092537cf3574fa2f65d404
treead76d77c3bfb894aa1b6915da96fd2af2b4e43b9
parent0b1f3adf7fe0b0ae13cd5390aeafda4676259322
ast_samp2tv needs floating point for 16khz audio

In ast_samp2tv(), (1000000 / _rate) = 62.5 when _rate is 16000.
The .5 is currently stripped off because we don't calculate
using floating points.  This causes madness with 16khz audio.

(issue ABE-1899)

Review: https://reviewboard.asterisk.org/r/305/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@205215 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/time.h