Visualization: Do not increment latency on write

The latency should not be incremented when writing sample data to the
buffer, but rather be posted by the output.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
Christopher Snowhill 2025-02-13 01:06:07 -08:00
parent b53ebc08fe
commit 08539a81e4

View file

@ -73,7 +73,6 @@ class VisualizationController : NSObject {
j += 1; if j >= k { j = 0 }
}
self.visAudioCursor = j
self.latency += Double(amount) / self.sampleRate
self.visSamplesPosted += UInt64(amount);
}
}