Update playback position 5 times per second instead of once, increasing smoothness of seekbar on shorter tracks, and hopefully solving jitter on some tracks
This commit is contained in:
parent
edb8b7422d
commit
5c6b145f9a
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue