Fix a bug when using zaptel timing for playing back files that have a sample rate
authorRussell Bryant <russell@russellbryant.com>
Thu, 20 Mar 2008 20:08:26 +0000 (20:08 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 20 Mar 2008 20:08:26 +0000 (20:08 +0000)
commit4e72f83d3e5cb42fdf31467d89a9c696ec24a5d0
tree0cb8b23b20da4971801ad47db9f910cc4bfeeddf
parentff9befa36a55468fe99960f67ef0196622c73a5b
Fix a bug when using zaptel timing for playing back files that have a sample rate
other than 8 kHz.  The issue here is that format modules give a "whennext" sample
value, which is used to calculate when to set a timer for to retrieve the next
frame.  However, the zaptel timer operates on 8 kHz samples, so this must be taken
into account.

(another part of issue #12164, reported by milazzo and jsmith, patch by me)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@110303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/file.c