<p>Sean Bright <strong>uploaded patch set #4</strong> to this change.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/12735">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">audiohook.c: Substitute silence for unavailable audio frames<br><br>There are 4 scenarios to consider when capturing audio from a channel<br>with an audiohook:<br><br> 1. There is no rx and no tx audio, so return nothing.<br> 2. There is rx but no tx audio, so return rx.<br> 3. There is tx but no rx audio, so return tx.<br> 4. There is rx and tx audio, so mix them and return.<br><br>The file passed as the primary argument to MixMonitor will be written to<br>in scenarios 2, 3, and 4. However, if you pass the r() and t() options<br>to MixMonitor, a frame will only be written to the r() file if there was<br>rx audio and a frame will only be written to the t() file if there was<br>tx audio.<br><br>If you subsequently take the r() and t() files and try to mix them, the<br>sides of the conversation will 'drift' and be non-representative of the<br>user experience.<br><br>This patch adds a new 'S' option to MixMonitor that injects a frame of<br>silence on either the r() side or the t() side of the channel so that<br>when later mixed, there is no such drift.<br><br>Change-Id: Ibf5ed73a811087727bd561a89a59f4447b4ee20e<br>---<br>M apps/app_mixmonitor.c<br>A doc/CHANGES-staging/mixmonitor-s-option.txt<br>M include/asterisk/audiohook.h<br>M main/audiohook.c<br>4 files changed, 32 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/35/12735/4</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/12735">change 12735</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/12735"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-Change-Id: Ibf5ed73a811087727bd561a89a59f4447b4ee20e </div>
<div style="display:none"> Gerrit-Change-Number: 12735 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Benjamin Keith Ford <bford@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Sean Bright <sean.bright@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>