[Asterisk-code-review] audiohook.c: Difference in read/write rates caused continuou... (asterisk[master])
Kevin Harwell
asteriskteam at digium.com
Thu May 14 15:23:43 CDT 2015
Hello Joshua Colp,
I'd like you to reexamine a change. Please visit
https://gerrit.asterisk.org/464
to look at the new patch set (#3).
Change subject: audiohook.c: Difference in read/write rates caused continuous buffer resets
......................................................................
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 during a list write the individual audiohook's
internal rate is not overwritten with the list's rate unless compatibility
is turned on, and during a read the audiohook's internal rate is not
overwritten unless it is turned off.
ASTERISK-24944 #close
Change-Id: Idab4dfef068a7922c09cc631dda27bc920a6c76f
---
M include/asterisk/audiohook.h
M main/audiohook.c
2 files changed, 19 insertions(+), 4 deletions(-)
git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/64/464/3
--
To view, visit https://gerrit.asterisk.org/464
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Idab4dfef068a7922c09cc631dda27bc920a6c76f
Gerrit-PatchSet: 3
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Owner: Kevin Harwell <kharwell at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
More information about the asterisk-code-review
mailing list