mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-12 01:19:49 +02:00
40 lines
869 B
C++
40 lines
869 B
C++
//
|
|
// AudioMixerStats.h
|
|
// assignment-client/src/audio
|
|
//
|
|
// Created by Zach Pomerantz on 11/22/16.
|
|
// 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_AudioMixerStats_h
|
|
#define hifi_AudioMixerStats_h
|
|
|
|
#ifdef HIFI_AUDIO_THROTTLE_DEBUG
|
|
#include <cstdint>
|
|
#endif
|
|
|
|
struct AudioMixerStats {
|
|
int sumStreams { 0 };
|
|
int sumListeners { 0 };
|
|
|
|
int totalMixes { 0 };
|
|
|
|
int hrtfRenders { 0 };
|
|
int hrtfSilentRenders { 0 };
|
|
int hrtfThrottleRenders { 0 };
|
|
|
|
int manualStereoMixes { 0 };
|
|
int manualEchoMixes { 0 };
|
|
|
|
#ifdef HIFI_AUDIO_THROTTLE_DEBUG
|
|
uint64_t throttleTime { 0 };
|
|
#endif
|
|
|
|
void reset();
|
|
void accumulate(const AudioMixerStats& otherStats);
|
|
};
|
|
|
|
#endif // hifi_AudioMixerStats_h
|