summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenri Herscher <henri@oreka.org>2006-05-18 01:57:20 +0000
committerHenri Herscher <henri@oreka.org>2006-05-18 01:57:20 +0000
commitd496872b9a324e80d20253d1699a544e0e842a08 (patch)
tree6bdfc86c67f350ac81b109092ea290827e471326
parent0c5eed2d6b1d6a149de8927f825aaef126703273 (diff)
Non WIN32 platform does not try to sleep for a nanosecond between packets anymore in replay mode.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@234 09dcff7a-b715-0410-9601-b79a96267cd0
-rw-r--r--orkaudio/audiocaptureplugins/voip/VoIp.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/VoIp.cpp b/orkaudio/audiocaptureplugins/voip/VoIp.cpp
index d7c1445..dd14af8 100644
--- a/orkaudio/audiocaptureplugins/voip/VoIp.cpp
+++ b/orkaudio/audiocaptureplugins/voip/VoIp.cpp
@@ -439,6 +439,7 @@ void HandlePacket(u_char *param, const struct pcap_pkthdr *header, const u_char
int ipHeaderLength = ipHeader->ip_hl*4;
u_char* ipPacketEnd = (u_char*)ipHeader + ipHeader->ip_len;
+#ifdef WIN32
if(!s_liveCapture)
{
// This is a pcap file replay, make sure Orkaudio won't be flooded by too many
@@ -453,6 +454,7 @@ void HandlePacket(u_char *param, const struct pcap_pkthdr *header, const u_char
ts.tv_nsec = 1;
ACE_OS::nanosleep (&ts, NULL);
}
+#endif
if(DLLCONFIG.IsPacketWanted(ipHeader) == false)
{