bring audio network latencies to standard

This commit is contained in:
Zach Pomerantz 2016-09-15 17:58:58 -07:00
parent 5b03d3e13d
commit bbbe070af1

View file

@ -128,14 +128,12 @@ void AudioStatsDialog::updateStats() {
// Clear current stats from all vectors
clearAllChannels();
double mixerRingBufferFrames = 0.0,
outputRingBufferFrames = 0.0;
double audioInputBufferLatency = 0.0,
inputRingBufferLatency = 0.0,
networkRoundtripLatency = 0.0,
mixerRingBufferLatency = 0.0,
outputRingBufferLatency = 0.0,
audioOutputBufferLatency = 0.0;
double audioInputBufferLatency{ 0.0 };
double inputRingBufferLatency{ 0.0 };
double networkRoundtripLatency{ 0.0 };
double mixerRingBufferLatency{ 0.0 };
double outputRingBufferLatency{ 0.0 };
double audioOutputBufferLatency{ 0.0 };
if (SharedNodePointer audioMixerNodePointer = DependencyManager::get<NodeList>()->soloNodeOfType(NodeType::AudioMixer)) {
audioInputBufferLatency = (double)_stats->getInputMsRead().getWindowMax();