jigsaw_rh wrote: 
> OK done in MP ;) 
> Thanks

I looked at the logs and I don't think there is a solution. 

- The belcanto can't handle properly stream with unknown length (as
said, this is an improper HTTP implementation), so a content-length must
be given. 
- Usually, in that case, the solution is to transcode to PCM where the
length is a function of the duration (and sample rate/size) so the
bridge can "calculate" it
- Roon's interface does not emulate LMS' Command Line Interface so I
can't retrieve the duration of a track
- So the only solution is to use a "fake" large content-length and send
data with a WAV header
- When the track ends (all bytes sent), the bridge simply stops feeding
the player, which the naturally stops after a while
- The bridge detects the stop and because it has send the whole track,
it moves to the next one
- Most faulty players are okay with and don't insist on receiving the
promised content-length when they run out of data

The problem si that when you end a track in the middle (by changing
playlist), the bridge stops the player and immediately sets a new track
information and starts sending new data. It seems that the bel canto, in
that case, maybe because things are happening too fast, is re-using the
data from the previous track that is probably hanging around in a
buffer. Of course that data does not contain a WAV header and it fails.
It looks to me that it's a twice faulty firmware there that causes that
result.

If you look at the logs, you'll see that a stopped player, once received
a "play" message will return a "playing" response *after* in at started
to grab data (using HTTP) from the bridge. But when you switch track, it
claims to be playing right after receiving the "play" message, which of
course makes no sense, unless it is reusing data from the old buffer.



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=103728

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to