mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-04 19:24:23 +02:00
_currentJitterBufferFrames replaced with moving average of frames available. Downstream framesAvailable stat now includes the frames in QAudioOutput as well as the ringbuffer.
30 lines
904 B
C++
30 lines
904 B
C++
//
|
|
// AvatarAudioRingBuffer.h
|
|
// assignment-client/src/audio
|
|
//
|
|
// Created by Stephen Birarda on 6/5/13.
|
|
// Copyright 2013 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_AvatarAudioRingBuffer_h
|
|
#define hifi_AvatarAudioRingBuffer_h
|
|
|
|
#include <QtCore/QUuid>
|
|
|
|
#include "PositionalAudioRingBuffer.h"
|
|
|
|
class AvatarAudioRingBuffer : public PositionalAudioRingBuffer {
|
|
public:
|
|
AvatarAudioRingBuffer(bool isStereo = false, bool dynamicJitterBuffer = false);
|
|
|
|
int parseData(const QByteArray& packet, int packetsSkipped = 0);
|
|
private:
|
|
// disallow copying of AvatarAudioRingBuffer objects
|
|
AvatarAudioRingBuffer(const AvatarAudioRingBuffer&);
|
|
AvatarAudioRingBuffer& operator= (const AvatarAudioRingBuffer&);
|
|
};
|
|
|
|
#endif // hifi_AvatarAudioRingBuffer_h
|