mirror of
https://github.com/overte-org/overte.git
synced 2025-07-03 22:49:12 +02:00
AgentAvatarTimer now in its own files. The thread still is created the same way, and started only when you are an avatar, but now I remember to stop it when you no longer are one. Audio is still at 100Hz, but avatar messages go at 60Hz as before. Unsure it matters, but easy to do. Looking at that buzz now.
31 lines
605 B
C++
31 lines
605 B
C++
//
|
|
// AvatarAudioTimer.h
|
|
// assignment-client/src
|
|
//
|
|
// Created by David Kelly on 10/12/13.
|
|
// Copyright 2016 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_AvatarAudioTimer_h
|
|
#define hifi_AvatarAudioTimer_h
|
|
|
|
#include <QtCore/QObject>
|
|
|
|
class AvatarAudioTimer : public QObject {
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
void avatarTick();
|
|
|
|
public slots:
|
|
void start();
|
|
void stop() { _quit = true; }
|
|
|
|
private:
|
|
bool _quit { false };
|
|
};
|
|
|
|
#endif //hifi_AvatarAudioTimer_h
|