From 5c6b145f9a1f7976ead17dce89ec167006e1af3a Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Mon, 19 Apr 2021 23:51:31 -0700 Subject: [PATCH] Update playback position 5 times per second instead of once, increasing smoothness of seekbar on shorter tracks, and hopefully solving jitter on some tracks --- Application/PlaybackController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Application/PlaybackController.m b/Application/PlaybackController.m index fb0fcd137..270859ac0 100644 --- a/Application/PlaybackController.m +++ b/Application/PlaybackController.m @@ -580,7 +580,7 @@ NSDictionary * makeRGInfo(PlaylistEntry *pe) else if (status == CogStatusPlaying) { if (!positionTimer) { - positionTimer = [NSTimer timerWithTimeInterval:1.00 target:self selector:@selector(updatePosition:) userInfo:nil repeats:YES]; + positionTimer = [NSTimer timerWithTimeInterval:0.2 target:self selector:@selector(updatePosition:) userInfo:nil repeats:YES]; [[NSRunLoop currentRunLoop] addTimer:positionTimer forMode:NSRunLoopCommonModes]; }