Add amplitude to output audio

monitor
Phil Taylor 2022-05-12 20:04:30 +01:00
rodzic c90611e444
commit a855c931b6
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -300,6 +300,7 @@ int rtHandler::writeData(void* outputBuffer, void* inputBuffer,
void rtHandler::convertedOutput(audioPacket packet)
{
arrayBuffer.append(packet.data);
amplitude = packet.amplitude;
currentLatency = packet.time.msecsTo(QTime::currentTime()) + (outFormat.durationForBytes(audio->getStreamLatency() * (outFormat.sampleSize() / 8) * outFormat.channelCount()) * 1000);
emit haveLevels(getAmplitude(), setup.latency, currentLatency, isUnderrun, isOverrun);
}