mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 22:36:39 +02:00
windows build
This commit is contained in:
parent
b6b2b7f58b
commit
dec16c8f0b
2 changed files with 15 additions and 11 deletions
|
@ -57,6 +57,11 @@ void PacketSender::queuePacketForSending(const HifiSockAddr& address, unsigned c
|
|||
_totalBytesQueued += packetLength;
|
||||
}
|
||||
|
||||
void PacketSender::setPacketsPerSecond(int packetsPerSecond) {
|
||||
_packetsPerSecond = std::max(MINIMUM_PACKETS_PER_SECOND, packetsPerSecond);
|
||||
}
|
||||
|
||||
|
||||
bool PacketSender::process() {
|
||||
if (isThreaded()) {
|
||||
return threadedProcess();
|
||||
|
|
|
@ -45,8 +45,7 @@ public:
|
|||
/// \thread any thread, typically the application thread
|
||||
void queuePacketForSending(const HifiSockAddr& address, unsigned char* packetData, ssize_t packetLength);
|
||||
|
||||
void setPacketsPerSecond(int packetsPerSecond)
|
||||
{ _packetsPerSecond = std::max(MINIMUM_PACKETS_PER_SECOND, packetsPerSecond); }
|
||||
void setPacketsPerSecond(int packetsPerSecond);
|
||||
int getPacketsPerSecond() const { return _packetsPerSecond; }
|
||||
|
||||
void setPacketSenderNotify(PacketSenderNotify* notify) { _notify = notify; }
|
||||
|
|
Loading…
Reference in a new issue