cshin1213 wrote: 
> I had played several 96/24, 192/24 albums(in apple lossless m4a format)
> and I found that there was a time calculation problem with LMS while I
> moved the playback slider.
> For example, I moved to last 10 seconds, the playback was also
> changed.(maybe wrong time location) 10 seconds later the playback ended
> while the music still went on. 
> The playback slider kept waiting until the music really ended.
> This issue is not happened if I play 44.1 album and it's also fine with
> Qobus hires music.
> Therefore, I think the problem is quite clearly.
> Hope these experiences could be helpful.
> Thanks !

For many formats, it is not possible to have a precise "jump to
position" because the bitrate is not constant or the seektable is not
granular enough. In addition, the time reported by LMS on the UI is not
perfect. It is the estimation that LMS does, added to the playback time
reported by the player. Players do *not* report absolute time (they
don't know it), but how many milliseconds they have been playing since
the last request. 

So when you seek to a position P in seconds, LMS stops playback, seeks N
bytes into the file to its best estimation of where is P seconds and
starts sending a *new* track to the player from byte N+1. LMS then
starts to count time from the estimated position using an autonomous
counter and adjust that counter when it receives the player's actual
played time which has started at 0 second with first bytes received, so
at byte N+1 of the actual file

This explain why playback counter it often not very precise, it's just
an indication sometimes and especially jumping 10s before the end of a
track is unlikely to display things properly.



LMS 8.2 on Odroid-C4 - *SqueezeAMP!*, 5xRadio, 5xBoom, 2xDuet, 1xTouch,
1xSB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000, ShairPortW,
2xChromecast Audio, Chromecast v1 and v2, Squeezelite on Pi,  Yamaha
WX-010, AppleTV 4, Airport Express, GGMM E5, RivaArena 1 & 3
------------------------------------------------------------------------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=114937

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to