update to snapshot spandsp-20090131

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11600 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2009-02-02 17:40:52 +00:00
parent 7f6b03501d
commit c14dacd56e
95 changed files with 1587 additions and 2097 deletions

View File

@@ -22,7 +22,7 @@
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id: dtmf.c,v 1.48 2009/01/29 18:30:14 steveu Exp $
* $Id: dtmf.c,v 1.49 2009/01/31 08:48:10 steveu Exp $
*/
/*! \file dtmf.h */
@@ -473,7 +473,7 @@ int dtmf_tx(dtmf_tx_state_t *s, int16_t amp[], int max_samples)
}
/*- End of function --------------------------------------------------------*/
size_t dtmf_tx_put(dtmf_tx_state_t *s, const char *digits, int len)
int dtmf_tx_put(dtmf_tx_state_t *s, const char *digits, int len)
{
size_t space;
@@ -486,7 +486,7 @@ size_t dtmf_tx_put(dtmf_tx_state_t *s, const char *digits, int len)
return 0;
}
if ((space = queue_free_space(&s->queue.queue)) < (size_t) len)
return len - space;
return len - (int) space;
if (queue_write(&s->queue.queue, (const uint8_t *) digits, len) >= 0)
return 0;
return -1;