1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-20 02:09:52 +00:00

ao_coreaudio_exclusive: fix latency calculation non-sense

Didn't use the properties it was supposed to use.
This commit is contained in:
wm4 2015-05-05 21:46:39 +02:00
parent fd6809f98a
commit bbedceb467

View File

@ -511,7 +511,7 @@ static int init_digital(struct ao *ao, AudioStreamBasicDescription asbd)
};
for (int n = 0; n < MP_ARRAY_SIZE(latency_properties); n++) {
uint32_t temp;
err = CA_GET_O(p->device, kAudioDevicePropertyLatency, &temp);
err = CA_GET_O(p->device, latency_properties[n], &temp);
CHECK_CA_WARN("cannot get device latency");
if (err == noErr)
latency_frames += temp;