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:
parent
b53ebc08fe
commit
08539a81e4
1 changed files with 0 additions and 1 deletions
|
@ -73,7 +73,6 @@ class VisualizationController : NSObject {
|
||||||
j += 1; if j >= k { j = 0 }
|
j += 1; if j >= k { j = 0 }
|
||||||
}
|
}
|
||||||
self.visAudioCursor = j
|
self.visAudioCursor = j
|
||||||
self.latency += Double(amount) / self.sampleRate
|
|
||||||
self.visSamplesPosted += UInt64(amount);
|
self.visSamplesPosted += UInt64(amount);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue