diff options
author | samr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109> | 2008-12-14 21:35:59 +0000 |
---|---|---|
committer | samr7 <samr7@126591fb-c623-4b62-a76d-97a8e4f34109> | 2008-12-14 21:35:59 +0000 |
commit | 7f1f317f1d0fcf303c2c5534f69a864c0ce48564 (patch) | |
tree | 88186c5389ca638fee0fa3d048a0e9bf721a783d | |
parent | 7c9b7dba8b2cd6f3130045f8249b9960381fa82a (diff) | |
download | nohands-7f1f317f1d0fcf303c2c5534f69a864c0ce48564.tar.gz |
Align SCO send() sizes to the MTU size.
git-svn-id: http://nohands.svn.sourceforge.net/svnroot/nohands/trunk@63 126591fb-c623-4b62-a76d-97a8e4f34109
-rw-r--r-- | libhfp/hfp.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libhfp/hfp.cpp b/libhfp/hfp.cpp index b3f94cc..9d83068 100644 --- a/libhfp/hfp.cpp +++ b/libhfp/hfp.cpp @@ -1341,6 +1341,7 @@ SndPushOutput(bool nonblock) while (1) { nsamples = 0; m_output.Peek(buf, nsamples); + nsamples -= (nsamples % m_sco_packet_samps); if (!nsamples) { return; } res = send(m_sco_sock, buf, nsamples * 2, MSG_NOSIGNAL); |