In case of underflow, do not advance the jb->write_ts pointer, but do it only for jb->read_ts. 
In case of underflow, do not advance the jb->write_ts pointer, but do it only for jb->read_ts. 

This modification better outlines the current state of the buffer. It allows to store the last written position and calculate how long the buffer has been empty (in underflow).
pgaval/unimrcp,MattRiddell/unimrcp,AaronZhangL/unimrcp,pgaval/unimrcp,MattRiddell/unimrcp,AaronZhangL/unimrcp,andrenatal/unimrcp,andrenatal/unimrcp,MattRiddell/unimrcp,AaronZhangL/unimrcp,andrenatal/unimrcp,pgaval/unimrcp