Update playback position 5 times per second instead of once, increasing smoothness of seekbar on shorter tracks, and hopefully solving jitter on some tracks

CQTexperiment
Christopher Snowhill 2021-04-19 23:51:31 -07:00
parent edb8b7422d
commit 5c6b145f9a
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}