(hopefully) fix pitch issues on Mac

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
fix flicker, hopefully fix pitch

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
update ht-api.h

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>