FatPete wrote: 
> Apologies for the rambling below - most of it is just a pre-amble to my
> main question (Option 3!)
> 
> Option 2:
> If I enable the uPnP plugin in LMS (the normal plug-in, not your
> uPnPBridge plug-in) will this appear as a server in the Sonos
> Controllers? From past experience, Sonos can be finicky about which
> servers it supports, e.g. WMP, Rhapsody, Asset, Kodi seem to work okay
> whereas many others don't appear. I could therefore just use the Sonos
> controllers as normal to browse the music served up by LMS. Downside is
> that I assume 24 bit wouldn't work, as I don't know how the standard
> uPnP plugin handles this? And uPnP server browsing on Sonos controllers
> was never too great as far as I recall.
> 
I've never tested that configuration with my Sonos devices, so I cannot
say

> 
> Option 3:
> This is my preferred option, and the main reason for this post.
> Your uPnPBridge plugin looks to be the exact thing I'm looking for. I
> can use all the flexibility of LMS - fast browsing of my collection etc
> - and use it to send music directly to any Sonos speaker, bypassing the
> Sonos controller software completely. So here's my main set of
> questions!
> 
> 1) Is the playback gapless?
> 
> 2) From reading your documentation, it sounds like your plug-in will
> automatically truncate 24 bit to 16 bit and downsample anything higher
> than 48000. Looking at profiles.xml I'm seeing
> <sample_rate>48000</sample_rate>, <L24_format>2</L24_format> in the
> common section which seems to support this theory. But one interesting
> thing in your documentation (and something I wasn't aware of):
> 
> -Note that this will not make your player work with 24 bits flac, unless
> you setup a rule in LMS to transcode them to WAV or AIFF, or you remove
> ‘flc’ from the <codec> list (eg Sonos devices are in this case, they
> fail silently when receiving 24 bits flac files but accept 24 bits wav)
> -
> 
> Does this mean that if I change the Sonos profile in the config file to
> have <codecs>aif,pcm,mp3</codecs> then the absence of 'flc' means your
> plug-in will then send all FLAC files as WAV instead, and therefore
> Sonos will play any 24-bit FLAC file as a 24-bit WAV files? If so, any
> reason not to do this instead of the default truncate/downsample
> behaviour?
> 
> Thanks again for your excellent work in the LMS community :cool:
> 
> Pete

1) I would say yes, Sonos players are what I've seen the best to do UPnP
gapless. They anticipate the download of the next song before the
current one is finished, a feature that some players that pretend to be
gapless don't do. Having said that, if you're a purist, I can't say that
it is always as gapless as native LMS can be - there might be small
gaps

2) The truncation is what you decide, the plugin only truncates if you
instructs it to do so. But the plugin does not downsample, only LMS can
do that. The sample rate is what is reported to LMS as the maximum rate
supported by the player so that LMS can act accordingly. To be
super-clear, the plugin only does sample processing on non-encoded files
(WAV/AIF/PCM) and the only thing it does is truncation and byte
re-ordering. If you change codecs to aif,pcm,mp3, LMS will understand
that this player does not support flac and will do transconding. Then my
plugin receives a raw PCM and can optionally do truncation. I did that
because LMS cannot be made aware of maximum sample length supported by a
player, so basically, if you had a player than only support 16 bits, you
were stuck for all you 24 bits files. Now you can decide to force LMS to
transcode these 24 bits files to PCM and then ask my plugin to truncate
to 16 bits, this is a 'trick'. My other comment on Sonos is that, funny
enough, Sonos does not accept 24 bits flacs but will accept 24 bits wav.
So, in that special case, you don't even have to asks my plugin to
truncate, all you have to do to have Sonos handling 24 bits files is to
report to LMS that this player does not support flac. Be aware that I'd
be surprised if 24 bits pcm (wav/aiff) are played as 24 bits by Sonos,
they are probably truncated as well (I'm not sure it would make any
difference for these players, but that's another discussion).

The only version of my bridges that do decoding and resampling is the
AirPlay one (much more CPU hungry and made to use all airplay compatible
speakers or amplifiers)

Hope this helps



LMS 7.7.5 - 5xRadio, 3xBoom, 4xDuet, 1xTouch, 1 SB2. Sonos 2xPLAY:1,
PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBMC, Foobar2000, XBoxOne,
JRiver 21, Chromecast Audio, Chromecast v1, Pi B2, Pi B+, 2xPi A+,
Odroid-C1, Cubie2
------------------------------------------------------------------------
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
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to