Update playback position 5 times per second instead of once, increasing smoothness of seekbar on shorter tracks, and hopefully solving jitter on some tracks
parent
edb8b7422d
commit
5c6b145f9a
|
@ -580,7 +580,7 @@ NSDictionary * makeRGInfo(PlaylistEntry *pe)
|
||||||
else if (status == CogStatusPlaying)
|
else if (status == CogStatusPlaying)
|
||||||
{
|
{
|
||||||
if (!positionTimer) {
|
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];
|
[[NSRunLoop currentRunLoop] addTimer:positionTimer forMode:NSRunLoopCommonModes];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue