mirror of
https://github.com/overte-org/overte.git
synced 2025-07-31 00:30:13 +02:00
40 lines
1 KiB
C++
40 lines
1 KiB
C++
//
|
|
// AvatarAudioRingBuffer.h
|
|
// hifi
|
|
//
|
|
// Created by Stephen Birarda on 6/5/13.
|
|
// Copyright (c) 2013 HighFidelity, Inc. All rights reserved.
|
|
//
|
|
|
|
#ifndef __hifi__AvatarAudioRingBuffer__
|
|
#define __hifi__AvatarAudioRingBuffer__
|
|
|
|
#include <Stk.h>
|
|
#include <TwoPole.h>
|
|
|
|
#include <QtCore/QUuid>
|
|
|
|
#include "PositionalAudioRingBuffer.h"
|
|
|
|
typedef std::map<QUuid, stk::TwoPole*> TwoPoleNodeMap;
|
|
|
|
class AvatarAudioRingBuffer : public PositionalAudioRingBuffer {
|
|
public:
|
|
AvatarAudioRingBuffer();
|
|
~AvatarAudioRingBuffer();
|
|
|
|
int parseData(unsigned char* sourceBuffer, int numBytes);
|
|
|
|
TwoPoleNodeMap& getTwoPoles() { return _twoPoles; }
|
|
|
|
bool shouldLoopbackForNode() const { return _shouldLoopbackForNode; }
|
|
private:
|
|
// disallow copying of AvatarAudioRingBuffer objects
|
|
AvatarAudioRingBuffer(const AvatarAudioRingBuffer&);
|
|
AvatarAudioRingBuffer& operator= (const AvatarAudioRingBuffer&);
|
|
|
|
TwoPoleNodeMap _twoPoles;
|
|
bool _shouldLoopbackForNode;
|
|
};
|
|
|
|
#endif /* defined(__hifi__AvatarAudioRingBuffer__) */
|