summaryrefslogtreecommitdiff
path: root/config.sub
diff options
context:
space:
mode:
authorKevin Harwell <kharwell@digium.com>2015-05-14 15:21:23 -0500
committerKevin Harwell <kharwell@digium.com>2015-05-20 16:08:58 -0500
commitb1e8c0b9eb7807f8f0368e06e99f31937a04df70 (patch)
tree7fc22cbb354d5361a3b850d502ef199c27bd7eb7 /config.sub
parent8697a49ef93dc1356731821c073b78d5f1dc90cb (diff)
audiohook.c: Difference in read/write rates caused continuous buffer resets
Currently, everytime a sample rate change occurs (on read or write) the associated factory buffers are reset. If the requested sample rate on a read differed from that of a write then the buffers are continually reset on every read and write. This has the side effect of emptying the buffer, thus there being no data to read and then write to a file in the case of call recording. This patch fixes it so that an audiohook_list's rate always maintains the maximum sample rate among hooks and formats. Audiohook sample rates are only overwritten by this value when slin native compatibility is turned on. Also, the audiohook sample rate can only overwrite the list's sample rate when its rate is greater than that of the list or if compatibility is turned off. This keeps the rate from constantly switching/resetting. ASTERISK-24944 #close Reported by: Ronald Raikes Change-Id: Idab4dfef068a7922c09cc631dda27bc920a6c76f
Diffstat (limited to 'config.sub')
0 files changed, 0 insertions, 0 deletions