ao_coreaudio_exclusive: dump all latency info in verbose mode

This commit is contained in:
wm4 2015-07-03 18:11:51 +02:00
parent ec21be498f
commit 597657110f
1 changed files with 4 additions and 1 deletions

View File

@ -315,8 +315,11 @@ static int init(struct ao *ao)
uint32_t temp;
err = CA_GET_O(p->device, latency_properties[n], &temp);
CHECK_CA_WARN("cannot get device latency");
if (err == noErr)
if (err == noErr) {
latency_frames += temp;
MP_VERBOSE(ao, "Latency %s: %d\n", fourcc_repr(latency_properties[n]),
(int)latency_frames);
}
}
p->hw_latency_us = ca_frames_to_us(ao, latency_frames);