Bug Fix: Latency reporting for high latency output
Fixes visualization latency under virtual machines, at least. Not sure which local or native systems would be reporting high latency here, but this should fix them as well. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
143010f91c
commit
6c3af4b2a4
1 changed files with 5 additions and 1 deletions
|
@ -706,7 +706,11 @@ current_device_listener(AudioObjectID inObjectID, UInt32 inNumberAddresses, cons
|
|||
}
|
||||
|
||||
- (double)latency {
|
||||
return [outputBuffer listDuration];
|
||||
NSTimeInterval latency = 0.0;
|
||||
if(_au) {
|
||||
latency = [_au latency];
|
||||
}
|
||||
return [outputBuffer listDuration] + latency;
|
||||
}
|
||||
|
||||
- (void)start {
|
||||
|
|
Loading…
Reference in a new issue