More > JRiver Media Center 32 for Windows

Volume protection lags when using MCWS/v1/Playback/Volume

<< < (2/3) > >>

Matt:
I'll adjust this a little for the coming build.  We would store the starting volume, but it was the start before the pending volume change.  I'll switch to storing the volume after the pending.  It looks good in my testing now, but double-check appreciated.  Thanks a lot for the help.

mattkhan:
Great thanks, will test when the build surfaces

Matt:
Let us know how it's working.  All the changes I made are in build 20.  Thanks.

mattkhan:
thanks but it's still a problem if you update more rapidly, e.g. MCWS/v1/Playback/Volume?Level=0.10&Relative=1 every 100ms produces


--- Code: ---<Item Name="Display">0%</Item>
<Item Name="Display">5%  (-77.5 dB)</Item>
<Item Name="Display">8%  (-63.9 dB)</Item>
<Item Name="Display">11%  (-53.4 dB)</Item>
<Item Name="Display">14%  (-48.6 dB)</Item>
<Item Name="Display">17%  (-44.0 dB)</Item>
<Item Name="Display">20%  (-39.8 dB)</Item>
<Item Name="Display">23%  (-38.3 dB)</Item>
<Item Name="Display">26%  (-36.8 dB)</Item>

--- End code ---

based on the earlier description of max 20% in one second then I'd expect it to go 0-5-10-15-20 and then the remaining requests are a nop but instead we end up at 26% and instead each request after the first is reduced in magnitude

mattkhan:
with a delay of 200ms between calls, I just get 5% per call


--- Code: ---<Item Name="Display">0%</Item>
<Item Name="Display">5%  (-77.5 dB)</Item>
<Item Name="Display">10%  (-55.0 dB)</Item>
<Item Name="Display">15%  (-47.5 dB)</Item>
<Item Name="Display">20%  (-40.0 dB)</Item>
<Item Name="Display">25%  (-37.5 dB)</Item>
<Item Name="Display">30%  (-35.1 dB)</Item>
<Item Name="Display">35%  (-32.6 dB)</Item>
<Item Name="Display">40%  (-30.1 dB)</Item>

--- End code ---

in short, there are 2 problems

1) if you hit it too quickly, MC reacts erratically
2) the stated 20% max in a single second (measured from when? presumably the 1st call as opposed in an actual walltime second?) does not appear to exist

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version