castalla wrote: 
> Here's the config
> 
> > 
Code:
--------------------
  >   > 
  > 
  > <?xml version="1.0"?>
  > <squeeze2upnp>
  > <server>?</server>
  > <slimproto_stream_port>9000</slimproto_stream_port>
  > <base_mac>00:01:02:03:04:05</base_mac>
  > <slimproto_log>info</slimproto_log>
  > <stream_log>info</stream_log>
  > <output_log>info</output_log>
  > <decode_log>info</decode_log>
  > <web_log>info</web_log>
  > <upnp_log>info</upnp_log>
  > <main_log>info</main_log>
  > <sq2mr_log>info</sq2mr_log>
  > <upnp_scan_interval>120</upnp_scan_interval>
  > <common>
  > <streambuf_size>2457600</streambuf_size>
  > <output_size>2457600</output_size>
  > <buffer_dir>.</buffer_dir>
  > <buffer_limit>-1</buffer_limit>
  > <stream_length>-3</stream_length>
  > <max_read_wait>100</max_read_wait>
  > <max_GET_bytes>-1</max_GET_bytes>
  > <enabled>1</enabled>
  > <process_mode>2</process_mode>
  > <codecs>mp3</codecs>
  > <sample_rate>48000</sample_rate>
  > <L24_format>1</L24_format>
  > <flac_header>1</flac_header>
  > <seek_after_pause>0</seek_after_pause>
  > <force_volume>0</force_volume>
  > <volume_on_play>1</volume_on_play>
  > <send_metadata>1</send_metadata>
  > <volume_curve>0:0, 400:10, 700:20, 1200:30, 2050:40, 3800:50, 6600:60, 
12000:70, 21000:80, 37000:90, 65536:100</volume_curve>
  > <accept_nexturi>1</accept_nexturi>
  > </common>
  > <device>
  > <udn>uuid:20081018-2310-f168-0308-000aeba9f608</udn>
  > <name>InternetRadio</name>
  > <mac>00:0a:eb:29:f6:08</mac>
  > <enabled>1</enabled>
  > </device>
  > </squeeze2upnp>
  > 
  > 
--------------------
> > 

I suggest setting back the <force_volume> to 1 so that when you change
track, a proper volume command is sent to the player (hence avoiding the
"reset to 0") and change the <volume_curve> parameter the following way

<volume_curve>0:0, 400:3, 700:7, 1200:10, 2050:13, 3800:17, 6600:20,
12000:23, 21000:26, 37000:28, 65536:30</volume_curve>

With that, the volume command should work, but limited to a much lower
level. The relation between LMS command and the player actual volume
might not yet match your tase in term of "proportionality between the
2", but that can be easily fixed if at least the max is correct - I'll
adjust the curve to what you want later

The way this works is:

when LMS requests 0, send a 0 to the player
when LMS requests 400, send 3 to the player
... 
when LMS requests 12000, send 23 to the player
when LMS requests 21000, send 26 to to the player
...
when LMS requests 65536, send 30 to the player

and when LMS request a value (for example) between 12000 and 21000, then
sq2u does a linear approxmation between the 2 values

PS: I tracked back to some exchanges we had int he past hence I thought
30 was the proper max for you player.



LMS 7.7.2 - 5 radio, 3 Boom, 4 Duet, 1 Touch, 1 SB2. Sonos 2xPLAY:1,
PLAY:3, PLAY:5, Marantz NR1603, JBL OnBeat, XBMC, Foobar2000, XBoxOne
(sort of)
------------------------------------------------------------------------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=102496

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

Reply via email to