mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
40 lines
886 B
C++
40 lines
886 B
C++
//
|
|
// AvatarMixer.h
|
|
// hifi
|
|
//
|
|
// Created by Stephen Birarda on 9/5/13.
|
|
// Copyright (c) 2013 HighFidelity, Inc. All rights reserved.
|
|
//
|
|
|
|
#ifndef __hifi__AvatarMixer__
|
|
#define __hifi__AvatarMixer__
|
|
|
|
#include <ThreadedAssignment.h>
|
|
|
|
/// Handles assignments of type AvatarMixer - distribution of avatar data to various clients
|
|
class AvatarMixer : public ThreadedAssignment {
|
|
public:
|
|
AvatarMixer(const QByteArray& packet);
|
|
|
|
public slots:
|
|
/// runs the avatar mixer
|
|
void run();
|
|
|
|
void nodeAdded(SharedNodePointer nodeAdded);
|
|
void nodeKilled(SharedNodePointer killedNode);
|
|
|
|
void readPendingDatagrams();
|
|
|
|
void sendStatsPacket();
|
|
|
|
private:
|
|
void broadcastAvatarData();
|
|
|
|
float _trailingSleepRatio;
|
|
float _performanceThrottlingRatio;
|
|
|
|
int _sumListeners;
|
|
int _numStatFrames;
|
|
};
|
|
|
|
#endif /* defined(__hifi__AvatarMixer__) */
|