fix breakage from slin endianness commit earlier today (sorry :-()

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5375 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-04-04 02:13:40 +00:00
parent 9f5b92a27f
commit bbc8c2ce6f
5 changed files with 24 additions and 12 deletions

View File

@@ -559,7 +559,7 @@ static int phone_write_buf(struct phone_pvt *p, const char *buf, int len, int fr
if (space < len)
len = space;
if (swap)
ast_memcpy_byteswap(p->obuf+p->obuflen, buf, len/2);
ast_swapcopy_samples(p->obuf+p->obuflen, buf, len/2);
else
memcpy(p->obuf + p->obuflen, buf, len);
p->obuflen += len;