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 3cc97b5574
commit 9701bd5421

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);
}
}