mirror of
https://github.com/mpv-player/mpv
synced 2025-03-21 10:51:51 +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:
parent
fd6809f98a
commit
bbedceb467
@ -511,7 +511,7 @@ static int init_digital(struct ao *ao, AudioStreamBasicDescription asbd)
|
|||||||
};
|
};
|
||||||
for (int n = 0; n < MP_ARRAY_SIZE(latency_properties); n++) {
|
for (int n = 0; n < MP_ARRAY_SIZE(latency_properties); n++) {
|
||||||
uint32_t temp;
|
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");
|
CHECK_CA_WARN("cannot get device latency");
|
||||||
if (err == noErr)
|
if (err == noErr)
|
||||||
latency_frames += temp;
|
latency_frames += temp;
|
||||||
|
Loading…
Reference in New Issue
Block a user