coreaudio: finer audio delay
commitfeaa3e792b259099771987635f5cdc8f56d776af
authorThomas Guillem <thomas@gllm.fr>
Wed, 14 Mar 2018 13:49:30 +0000 (14 14:49 +0100)
committerThomas Guillem <thomas@gllm.fr>
Wed, 14 Mar 2018 13:50:46 +0000 (14 14:50 +0100)
tree671966f0014be6a4bc4fba1b584d424fa0b896c2
parent9bb14edac43e3bf7c4a96b02e3f920f7f7efeb6c
coreaudio: finer audio delay

This is a partial revert of f18fef325af25113875b09c8f727017febc6198a

This commit fixes the delay imprecision that was depending on the number of
frames asked by the render callback. This also fixes audio glitches (due to
flush/resampling) when this number of frames was changed (when the screen is
OFF for example).
modules/audio_output/auhal.c
modules/audio_output/coreaudio_common.c
modules/audio_output/coreaudio_common.h